Skip to content

Commit

Permalink
Fixes bug where limits panel doesn't show if there are entity limits but
Browse files Browse the repository at this point in the history
no block limits.

#18
  • Loading branch information
tastybento committed May 5, 2019
1 parent ffeb4a7 commit f2e9f87
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void showLimits(World world, User user, UUID target) {
}
IslandBlockCount ibc = addon.getBlockLimitListener().getIsland(island.getUniqueId());
Map<Material, Integer> matLimits = addon.getBlockLimitListener().getMaterialLimits(world, island.getUniqueId());
if (matLimits.isEmpty()) {
if (matLimits.isEmpty() && addon.getSettings().getLimits().isEmpty()) {
user.sendMessage("island.limits.no-limits");
return;
}
Expand Down

0 comments on commit f2e9f87

Please sign in to comment.