From b93da520ef19c81e02023a38c22710028d4f5207 Mon Sep 17 00:00:00 2001 From: LatvianModder Date: Thu, 19 Oct 2023 21:58:17 +0300 Subject: [PATCH] Fixed missing type wrappers for item/block colors --- .../java/dev/latvian/mods/kubejs/BuiltinKubeJSPlugin.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/src/main/java/dev/latvian/mods/kubejs/BuiltinKubeJSPlugin.java b/common/src/main/java/dev/latvian/mods/kubejs/BuiltinKubeJSPlugin.java index 97e451f2f..2c9b483b9 100644 --- a/common/src/main/java/dev/latvian/mods/kubejs/BuiltinKubeJSPlugin.java +++ b/common/src/main/java/dev/latvian/mods/kubejs/BuiltinKubeJSPlugin.java @@ -21,6 +21,7 @@ import dev.latvian.mods.kubejs.bindings.event.ServerEvents; import dev.latvian.mods.kubejs.bindings.event.StartupEvents; import dev.latvian.mods.kubejs.bindings.event.WorldgenEvents; +import dev.latvian.mods.kubejs.block.BlockTintFunction; import dev.latvian.mods.kubejs.block.DetectorBlock; import dev.latvian.mods.kubejs.block.MapColorHelper; import dev.latvian.mods.kubejs.block.SoundTypeWrapper; @@ -52,6 +53,7 @@ import dev.latvian.mods.kubejs.item.InputItem; import dev.latvian.mods.kubejs.item.ItemBuilder; import dev.latvian.mods.kubejs.item.ItemStackJS; +import dev.latvian.mods.kubejs.item.ItemTintFunction; import dev.latvian.mods.kubejs.item.OutputItem; import dev.latvian.mods.kubejs.item.creativetab.CreativeTabBuilder; import dev.latvian.mods.kubejs.item.custom.ArmorItemBuilder; @@ -466,6 +468,8 @@ public void registerTypeWrappers(ScriptType type, TypeWrappers typeWrappers) { typeWrappers.registerSimple(MapColor.class, MapColorHelper::of); typeWrappers.register(SoundType.class, SoundTypeWrapper.INSTANCE); typeWrappers.registerSimple(ParticleOptions.class, UtilsWrapper::particleOptions); + typeWrappers.register(ItemTintFunction.class, ItemTintFunction::of); + typeWrappers.register(BlockTintFunction.class, BlockTintFunction::of); // components // typeWrappers.registerSimple(Component.class, TextWrapper::of);