From 240bffa7ed1a4ba3d221be3a517c1c347d77c0c9 Mon Sep 17 00:00:00 2001 From: Electroblob77 <35599699+Electroblob77@users.noreply.github.com> Date: Sun, 17 Jan 2021 15:14:23 +0000 Subject: [PATCH] Sometimes, I surprise even myself with my own stupidity... fixes #594 (This is literally why I have a helper method. To prevent exactly this error :/) --- src/main/java/electroblob/wizardry/util/BlockUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/electroblob/wizardry/util/BlockUtils.java b/src/main/java/electroblob/wizardry/util/BlockUtils.java index 9206ac56..488d03c9 100644 --- a/src/main/java/electroblob/wizardry/util/BlockUtils.java +++ b/src/main/java/electroblob/wizardry/util/BlockUtils.java @@ -419,7 +419,7 @@ public final class BlockUtils { world.setBlockState(pos, Blocks.OBSIDIAN.getDefaultState()); }else if(freezeLava && (block == Blocks.LAVA || block == Blocks.FLOWING_LAVA)){ world.setBlockState(pos, Blocks.COBBLESTONE.getDefaultState()); - }else if(world.getBlockState(pos).getBlock().isReplaceable(world, pos.up()) && Blocks.SNOW_LAYER.canPlaceBlockAt(world, pos.up())){ + }else if(canBlockBeReplaced(world, pos.up()) && Blocks.SNOW_LAYER.canPlaceBlockAt(world, pos.up())){ world.setBlockState(pos.up(), Blocks.SNOW_LAYER.getDefaultState()); }else{ return false;