What are the dud BlockCategories?

This commit is contained in:
Jesse Boyd
2018-08-14 11:00:44 +10:00
parent 76a55b7712
commit 1740c845d2
13 changed files with 40 additions and 31 deletions

View File

@ -233,7 +233,7 @@ public class PlayerWrapper extends AbstractPlayerActor {
Extent world = getLocation().getExtent();
// No free space above
if (world.getBlock(new Vector(x, y, z)).getBlockType() != BlockTypes.AIR) {
if (!world.getBlock(new Vector(x, y, z)).getBlockType().getMaterial().isAir()) {
return false;
}