mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-10 10:28:21 +01:00
Mark end portals and gateways as unsafe location. (#2042)
The end portals and gateways teleports players to a different dimension upon player touches it. So teleportation should consider these positions as unsafe, otherwise player will be teleported to the different dimension instantly. Fixes #2040
This commit is contained in:
parent
ac4922534e
commit
a22ce33175
@ -269,7 +269,11 @@ public class IslandsManager {
|
||||
|| ground.name().contains("SIGN")
|
||||
|| ground.name().contains("BANNER")
|
||||
|| ground.name().contains("BUTTON")
|
||||
|| ground.name().contains("BOAT")) {
|
||||
|| ground.name().contains("BOAT")
|
||||
|| space1.equals(Material.END_PORTAL)
|
||||
|| space2.equals(Material.END_PORTAL)
|
||||
|| space1.equals(Material.END_GATEWAY)
|
||||
|| space2.equals(Material.END_GATEWAY)) {
|
||||
return false;
|
||||
}
|
||||
// Known unsafe blocks
|
||||
|
Loading…
Reference in New Issue
Block a user