mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-23 19:25:12 +01:00
Avoids trying to paste islands on portal if use own generator is true.
This affected SkyGrid. https://github.com/BentoBoxWorld/SkyGrid/issues/18
This commit is contained in:
parent
6d7f0eaf6d
commit
e9ca8733c0
@ -102,7 +102,7 @@ public class PortalTeleportationListener implements Listener {
|
||||
Location to = optionalIsland.map(i -> i.getSpawnPoint(Environment.THE_END)).orElse(e.getFrom().toVector().toLocation(endWorld));
|
||||
e.setCancelled(true);
|
||||
// Check if there is a missing end island
|
||||
if (plugin.getIWM().isEndGenerate(overWorld)
|
||||
if (!plugin.getIWM().isUseOwnGenerator(overWorld) && plugin.getIWM().isEndGenerate(overWorld)
|
||||
&& plugin.getIWM().isEndIslands(overWorld)
|
||||
&& plugin.getIWM().getEndWorld(overWorld) != null
|
||||
&& !optionalIsland.map(Island::hasEndIsland).orElse(true)) {
|
||||
@ -171,7 +171,7 @@ public class PortalTeleportationListener implements Listener {
|
||||
Location to = optionalIsland.map(i -> i.getSpawnPoint(Environment.NETHER)).orElse(e.getFrom().toVector().toLocation(nether));
|
||||
e.setCancelled(true);
|
||||
// Check if there is an island there or not
|
||||
if (plugin.getIWM().isNetherGenerate(overWorld)
|
||||
if (!plugin.getIWM().isUseOwnGenerator(overWorld) && plugin.getIWM().isNetherGenerate(overWorld)
|
||||
&& plugin.getIWM().isNetherIslands(overWorld)
|
||||
&& plugin.getIWM().getNetherWorld(overWorld) != null
|
||||
&& !optionalIsland.map(Island::hasNetherIsland).orElse(true)) {
|
||||
|
Loading…
Reference in New Issue
Block a user