diff --git a/src/main/java/io/github/realguyman/totally_lit/block/UnlitWallTorchBlock.java b/src/main/java/io/github/realguyman/totally_lit/block/UnlitWallTorchBlock.java index dd9fff7..9a8751c 100644 --- a/src/main/java/io/github/realguyman/totally_lit/block/UnlitWallTorchBlock.java +++ b/src/main/java/io/github/realguyman/totally_lit/block/UnlitWallTorchBlock.java @@ -6,7 +6,6 @@ import net.minecraft.block.WallTorchBlock; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.particle.ParticleEffect; -import net.minecraft.state.property.Properties; import net.minecraft.util.ActionResult; import net.minecraft.util.Hand; import net.minecraft.util.hit.BlockHitResult; @@ -29,7 +28,7 @@ public Block getLitBlock() { @Override public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult result) { - if (player.getStackInHand(hand).isIn(TagRegistry.TORCH_IGNITER_ITEMS) && world.setBlockState(pos, litBlock.getDefaultState().with(Properties.FACING, state.get(Properties.FACING)))) { + if (player.getStackInHand(hand).isIn(TagRegistry.TORCH_IGNITER_ITEMS) && world.setBlockState(pos, litBlock.getDefaultState().with(WallTorchBlock.FACING, state.get(WallTorchBlock.FACING)))) { // TODO: Add a quiet flame sound. return ActionResult.SUCCESS; }