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...?
This commit is contained in:
Electroblob77
2019-09-30 11:30:53 +01:00
parent 9426a96df3
commit 03dd76c18a
@@ -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. */