mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 09:37:50 +01:00
Set PORTAL as an Unsafe Destination
This commit is contained in:
parent
7973f544ff
commit
78b710dc22
@ -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()));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user