mirror of
https://github.com/BentoBoxWorld/Limits.git
synced 2024-09-27 14:12:57 +02:00
Fixes bug where limits panel doesn't show if there are entity limits but
no block limits. https://github.com/BentoBoxWorld/addon-limits/issues/18
This commit is contained in:
parent
ffeb4a7386
commit
f2e9f87fed
@ -95,7 +95,7 @@ public class LimitPanel {
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user