Skip to content

Commit

Permalink
Fixed missing type wrappers for item/block colors
Browse files Browse the repository at this point in the history
  • Loading branch information
LatvianModder committed Oct 19, 2023
1 parent 2f409b2 commit b93da52
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit b93da52

Please sign in to comment.