From 4cccc8b2cff2d4f23c9b3b60b7b4fca42560d394 Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Sun, 30 Jun 2019 13:37:35 +0200 Subject: [PATCH] Fixed typo in one of DeleteIslandChunks' methods' name --- .../world/bentobox/bentobox/util/DeleteIslandChunks.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/world/bentobox/bentobox/util/DeleteIslandChunks.java b/src/main/java/world/bentobox/bentobox/util/DeleteIslandChunks.java index f90e75d5f..226379934 100644 --- a/src/main/java/world/bentobox/bentobox/util/DeleteIslandChunks.java +++ b/src/main/java/world/bentobox/bentobox/util/DeleteIslandChunks.java @@ -50,14 +50,13 @@ public class DeleteIslandChunks { task = Bukkit.getScheduler().runTaskTimer(plugin, () -> { for (int i = 0; i < SPEED; i++) { plugin.getIWM().getAddon(di.getWorld()).ifPresent(gm -> { - - regerateChunk(gm, di.getWorld().getChunkAt(chunkX, chunkZ)); + regenerateChunk(gm, di.getWorld().getChunkAt(chunkX, chunkZ)); if (plugin.getIWM().isNetherGenerate(di.getWorld()) && plugin.getIWM().isNetherIslands(di.getWorld())) { - regerateChunk(gm, plugin.getIWM().getNetherWorld(di.getWorld()).getChunkAt(chunkX, chunkZ)); + regenerateChunk(gm, plugin.getIWM().getNetherWorld(di.getWorld()).getChunkAt(chunkX, chunkZ)); } if (plugin.getIWM().isEndGenerate(di.getWorld()) && plugin.getIWM().isEndIslands(di.getWorld())) { - regerateChunk(gm, plugin.getIWM().getEndWorld(di.getWorld()).getChunkAt(chunkX, chunkZ)); + regenerateChunk(gm, plugin.getIWM().getEndWorld(di.getWorld()).getChunkAt(chunkX, chunkZ)); } chunkZ++; if (chunkZ > di.getMaxZChunk()) { @@ -75,7 +74,7 @@ public class DeleteIslandChunks { }, 0L, 1L); } - private void regerateChunk(GameModeAddon gm, Chunk chunk) { + private void regenerateChunk(GameModeAddon gm, Chunk chunk) { // Clear all inventories Arrays.stream(chunk.getTileEntities()).filter(te -> (te instanceof InventoryHolder)) .filter(te -> di.inBounds(te.getLocation().getBlockX(), te.getLocation().getBlockZ()))