fix passable and replacable checks for snow in cached chunks, fixes #87

This commit is contained in:
Leijurv
2018-08-25 08:44:33 -07:00
parent db6453fae0
commit 342bb8616c
4 changed files with 39 additions and 8 deletions

View File

@@ -107,7 +107,7 @@ public class MovementTraverse extends Movement {
return COST_INF;
}
IBlockState pp0 = BlockStateInterface.get(positionsToPlace[0]);
if (pp0.getBlock().equals(Blocks.AIR) || (!BlockStateInterface.isWater(pp0.getBlock()) && pp0.getBlock().isReplaceable(Minecraft.getMinecraft().world, positionsToPlace[0]))) {
if (pp0.getBlock().equals(Blocks.AIR) || (!BlockStateInterface.isWater(pp0.getBlock()) && MovementHelper.isReplacable(positionsToPlace[0], pp0))) {
if (!context.hasThrowaway()) {
return COST_INF;
}