Fixes incorrect condition for missing island check.

This commit is contained in:
BONNe 2022-09-30 14:34:12 +03:00
parent d197ce8bea
commit 4458d16274

View File

@ -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);