Renamed IslandWorldManager#pasteMissingIslands() to #isPasteMissingIslands()

This commit is contained in:
Florian CUNY 2019-12-23 14:14:29 +01:00
parent fbceaa51d3
commit cd02c5f4df
2 changed files with 3 additions and 3 deletions

View File

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

View File

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