mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-15 05:33:40 +00:00
Set PORTAL as an Unsafe Destination
This commit is contained in:
parent
7973f544ff
commit
78b710dc22
1 changed files with 3 additions and 0 deletions
|
@ -252,6 +252,9 @@ public class LocationUtil {
|
||||||
if (below.getType() == Material.BED_BLOCK) {
|
if (below.getType() == Material.BED_BLOCK) {
|
||||||
return true;
|
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()));
|
return (!HOLLOW_MATERIALS.contains(world.getBlockAt(x, y, z).getType())) || (!HOLLOW_MATERIALS.contains(world.getBlockAt(x, y + 1, z).getType()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue