From ae9da5b7c1ee564c19bf5006e731136efcb09f89 Mon Sep 17 00:00:00 2001 From: Electroblob77 <35599699+Electroblob77@users.noreply.github.com> Date: Sun, 20 Dec 2020 19:13:41 +0000 Subject: [PATCH] =?UTF-8?q?Query=20the=20position=20using=20the=20block=20?= =?UTF-8?q?at=20that=20position,=20not=20the=20one=20below...=20?= =?UTF-8?q?=F0=9F=A4=A6=E2=80=8D=20Fixes=20#519.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 8390353c..9206ac56 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(block.isReplaceable(world, pos.up()) && Blocks.SNOW_LAYER.canPlaceBlockAt(world, pos.up())){ + }else if(world.getBlockState(pos).getBlock().isReplaceable(world, pos.up()) && Blocks.SNOW_LAYER.canPlaceBlockAt(world, pos.up())){ world.setBlockState(pos.up(), Blocks.SNOW_LAYER.getDefaultState()); }else{ return false;