mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-18 21:32:04 +01:00
Fixes incorrect condition for missing island check.
This commit is contained in:
parent
d197ce8bea
commit
4458d16274
@ -308,7 +308,7 @@ public class PlayerTeleportListener extends AbstractTeleportListener implements
|
|||||||
this.isIslandWorld(overWorld, environment) &&
|
this.isIslandWorld(overWorld, environment) &&
|
||||||
this.getNetherEndWorld(overWorld, environment) != null &&
|
this.getNetherEndWorld(overWorld, environment) != null &&
|
||||||
this.getIsland(event.getTo()).
|
this.getIsland(event.getTo()).
|
||||||
filter(island -> this.hasPartnerIsland(island, environment)).
|
filter(island -> !this.hasPartnerIsland(island, environment)).
|
||||||
map(island -> {
|
map(island -> {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
this.pasteNewIsland(event.getPlayer(), event.getTo(), island, environment);
|
this.pasteNewIsland(event.getPlayer(), event.getTo(), island, environment);
|
||||||
|
Loading…
Reference in New Issue
Block a user