This commit is contained in:
Cheese 2016-02-02 09:25:46 +11:00
parent 3a945f190d
commit 610522bdd9

View File

@ -634,10 +634,7 @@ public class UtilEnt
//Fences/Walls
Material beneath = player.getLocation().add(x, -1.5, z).getBlock().getType();
if (player.getLocation().getY() % 0.5 == 0 &&
(beneath == Material.FENCE ||
beneath == Material.FENCE_GATE ||
beneath == Material.NETHER_FENCE ||
beneath == Material.COBBLE_WALL))
(beneath.toString().contains("FENCE") || beneath == Material.COBBLE_WALL))
return true;
}
}