mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-10 17:31:32 +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.getNetherEndWorld(overWorld, environment) != null &&
|
||||
this.getIsland(event.getTo()).
|
||||
filter(island -> this.hasPartnerIsland(island, environment)).
|
||||
filter(island -> !this.hasPartnerIsland(island, environment)).
|
||||
map(island -> {
|
||||
event.setCancelled(true);
|
||||
this.pasteNewIsland(event.getPlayer(), event.getTo(), island, environment);
|
||||
|
Loading…
Reference in New Issue
Block a user