From 0e1cdfc39a9450534a7fdb61a28a0ab7984c945f Mon Sep 17 00:00:00 2001 From: leelawd Date: Sat, 16 Jun 2018 13:27:22 +0100 Subject: [PATCH] temp fix for issue with having 1 extra chunk --- .../moddedminecraft/betterchunkloader/menu/MenuListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/moddedminecraft/betterchunkloader/menu/MenuListener.java b/src/main/java/net/moddedminecraft/betterchunkloader/menu/MenuListener.java index ebc92f6..278277c 100644 --- a/src/main/java/net/moddedminecraft/betterchunkloader/menu/MenuListener.java +++ b/src/main/java/net/moddedminecraft/betterchunkloader/menu/MenuListener.java @@ -99,7 +99,7 @@ public void onMenuInteract(ClickInventoryEvent event) { args.put("available", String.valueOf(available)); - if (chunks.get() > available + chunkLoader.getChunks()) { + if (chunks.get() > (available + chunkLoader.getChunks()) - 1) { args.put("needed", String.valueOf(chunks.get())); player.sendMessage(Utilities.parseMessage(plugin.getConfig().getMessages().prefix + plugin.getConfig().getMessages().chunkLoader.notEnough, args)); break;