diff --git a/common/src/main/java/com/gtnewhorizon/structurelib/structure/StructureUtility.java b/common/src/main/java/com/gtnewhorizon/structurelib/structure/StructureUtility.java index d4f09f6f..b8cb2721 100644 --- a/common/src/main/java/com/gtnewhorizon/structurelib/structure/StructureUtility.java +++ b/common/src/main/java/com/gtnewhorizon/structurelib/structure/StructureUtility.java @@ -135,7 +135,7 @@ public boolean check(Object t, Level world, int x, int y, int z) { @Override public boolean spawnHint(Object o, Level world, int x, int y, int z, ItemStack trigger) { - StructureLibAPI.hintParticle(world, x, y, z, Registry.HINT_AIR); + StructureLibAPI.hintParticle(world, x, y, z, Blocks.AIR/*Registry.HINT_AIR*/); return true; } @@ -166,13 +166,13 @@ public boolean check(Object t, Level world, int x, int y, int z) { @Override public boolean spawnHint(Object o, Level world, int x, int y, int z, ItemStack trigger) { - StructureLibAPI.hintParticle(world, x, y, z, Registry.HINT_NOAIR); + StructureLibAPI.hintParticle(world, x, y, z, Blocks.AIR/*Registry.HINT_NOAIR*/); return true; } @Override public boolean placeBlock(Object o, Level world, int x, int y, int z, ItemStack trigger) { - world.setBlock(new BlockPos(x, y, z), Registry.HINT_NOAIR.defaultBlockState(), 2); + world.setBlock(new BlockPos(x, y, z), Blocks.AIR/*Registry.HINT_NOAIR*/.defaultBlockState(), 2); return true; } @@ -205,7 +205,7 @@ public boolean check(Object t, Level world, int x, int y, int z) { @Override public boolean spawnHint(Object o, Level world, int x, int y, int z, ItemStack trigger) { - StructureLibAPI.hintParticle(world, x, y, z, Registry.HINT_ERROR); + StructureLibAPI.hintParticle(world, x, y, z, Blocks.AIR/*Registry.HINT_ERROR*/); return true; } diff --git a/fabric/src/main/java/com/gtnewhorizon/structurelib/fabric/StructureLibFabric.java b/fabric/src/main/java/com/gtnewhorizon/structurelib/fabric/StructureLibFabric.java index 448e782a..b6fe238f 100644 --- a/fabric/src/main/java/com/gtnewhorizon/structurelib/fabric/StructureLibFabric.java +++ b/fabric/src/main/java/com/gtnewhorizon/structurelib/fabric/StructureLibFabric.java @@ -14,7 +14,7 @@ public class StructureLibFabric extends StructureLib implements ModInitializer { @Override public void onInitialize() { - creativeTab = FabricItemGroupBuilder.build(new ResourceLocation(StructureLibAPI.MOD_ID, "tab"), () -> new ItemStack(Registry.HINT_0)); + creativeTab = FabricItemGroupBuilder.build(new ResourceLocation(StructureLibAPI.MOD_ID, "tab"), () -> new ItemStack(Registry.CONSTRUCTABLE_TRIGGER)); super.preInit(); Registry.init(); CommandRegistrationCallback.EVENT.register((dispatcher, dedicated) -> CommandConfigureChannels.registerCommands(dispatcher, dedicated ? Commands.CommandSelection.DEDICATED : Commands.CommandSelection.INTEGRATED)); diff --git a/forge/src/main/java/com/gtnewhorizon/structurelib/forge/StructureLibForge.java b/forge/src/main/java/com/gtnewhorizon/structurelib/forge/StructureLibForge.java index 25263086..563bef03 100644 --- a/forge/src/main/java/com/gtnewhorizon/structurelib/forge/StructureLibForge.java +++ b/forge/src/main/java/com/gtnewhorizon/structurelib/forge/StructureLibForge.java @@ -25,7 +25,7 @@ public StructureLibForge(){ creativeTab = new CreativeModeTab("structurelib:tab") { @Override public ItemStack makeIcon() { - return new ItemStack(Registry.HINT_0); + return new ItemStack(Registry.CONSTRUCTABLE_TRIGGER.asItem()); } }; FMLJavaModLoadingContext.get().getModEventBus().addGenericListener(Block.class, this::onRegisterBlock);