Skip to content

Commit

Permalink
temp fix for issue with having 1 extra chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
leelawd committed Jun 16, 2018
1 parent 54dd2a0 commit 0e1cdfc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0e1cdfc

Please sign in to comment.