mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-04 06:21:28 +01:00
Renamed IslandWorldManager#pasteMissingIslands() to #isPasteMissingIslands()
This commit is contained in:
parent
fbceaa51d3
commit
cd02c5f4df
@ -110,7 +110,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().pasteMissingIslands(overWorld)
|
||||
if (plugin.getIWM().isPasteMissingIslands(overWorld)
|
||||
&& !plugin.getIWM().isUseOwnGenerator(overWorld)
|
||||
&& plugin.getIWM().isEndGenerate(overWorld)
|
||||
&& plugin.getIWM().isEndIslands(overWorld)
|
||||
@ -187,7 +187,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().pasteMissingIslands(overWorld) &&
|
||||
if (plugin.getIWM().isPasteMissingIslands(overWorld) &&
|
||||
!plugin.getIWM().isUseOwnGenerator(overWorld) && plugin.getIWM().isNetherGenerate(overWorld)
|
||||
&& plugin.getIWM().isNetherIslands(overWorld)
|
||||
&& plugin.getIWM().getNetherWorld(overWorld) != null
|
||||
|
@ -835,7 +835,7 @@ public class IslandWorldManager {
|
||||
* @return true if missing nether or end islands should be pasted
|
||||
* @since 1.10.0
|
||||
*/
|
||||
public boolean pasteMissingIslands(@NonNull World world) {
|
||||
public boolean isPasteMissingIslands(@NonNull World world) {
|
||||
return gameModes.containsKey(world) && gameModes.get(world).getWorldSettings().isPasteMissingIslands();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user