Skip to content

Commit

Permalink
fixed referneces to removed hint blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Sep 22, 2023
1 parent b7ea31c commit ed269e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ed269e9

Please sign in to comment.