From 03dd76c18a9ce03efe255b8aff61405ff9ed8fbe Mon Sep 17 00:00:00 2001 From: Electroblob77 <35599699+Electroblob77@users.noreply.github.com> Date: Mon, 30 Sep 2019 11:30:53 +0100 Subject: [PATCH] Fix the blockpos passed into the block being the blockpos a block below the blockpos of the blockstate where the block was from, fixes #267 Easy mistake to make, but how has it avoided detection for so long...? --- src/main/java/electroblob/wizardry/util/WizardryUtilities.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/electroblob/wizardry/util/WizardryUtilities.java b/src/main/java/electroblob/wizardry/util/WizardryUtilities.java index cbb0ee05..8a094e1b 100644 --- a/src/main/java/electroblob/wizardry/util/WizardryUtilities.java +++ b/src/main/java/electroblob/wizardry/util/WizardryUtilities.java @@ -270,7 +270,7 @@ public final class WizardryUtilities { /** Surface criterion which defines a surface as the boundary between a block that is solid on the required side and * a block that is replaceable. This means the surface can be built on. */ - SurfaceCriteria BUILDABLE = (world, pos, side) -> world.isSideSolid(pos, side) && world.getBlockState(pos.offset(side)).getBlock().isReplaceable(world, pos); + SurfaceCriteria BUILDABLE = (world, pos, side) -> world.isSideSolid(pos, side) && world.getBlockState(pos.offset(side)).getBlock().isReplaceable(world, pos.offset(side)); /** Surface criterion which defines a surface as the boundary between a block that is solid on the required side * or a liquid, and an air block. Used for freezing water and placing snow. */