Fix Pathing Thread crash on Forge

This commit is contained in:
Brady 2018-10-14 23:46:41 -05:00
parent c1076461e2
commit 2f7259714a
No known key found for this signature in database
GPG Key ID: 73A788379A197567
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ public interface MovementHelper extends ActionCosts, Helper {
BlockDoublePlant.EnumPlantType kek = state.getValue(BlockDoublePlant.VARIANT);
return kek == BlockDoublePlant.EnumPlantType.FERN || kek == BlockDoublePlant.EnumPlantType.GRASS;
}
return state.getBlock().isReplaceable(null, null);
return state.getMaterial().isReplaceable();
}
static boolean isDoorPassable(BlockPos doorPos, BlockPos playerPos) {