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 :/)
This commit is contained in:
Electroblob77
2021-01-17 15:14:23 +00:00
parent c313236eec
commit 240bffa7ed
@@ -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;