Set PORTAL as an Unsafe Destination

This commit is contained in:
Maxetto 2017-01-20 09:17:00 -06:00 committed by vemacs
parent 7973f544ff
commit 78b710dc22

View File

@ -252,6 +252,9 @@ public class LocationUtil {
if (below.getType() == Material.BED_BLOCK) {
return true;
}
if (world.getBlockAt(x, y, z).getType() == Material.PORTAL) {
return true;
}
return (!HOLLOW_MATERIALS.contains(world.getBlockAt(x, y, z).getType())) || (!HOLLOW_MATERIALS.contains(world.getBlockAt(x, y + 1, z).getType()));
}