Skip to content

Commit

Permalink
Fixes offset duplication in Limits Panel
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Mar 27, 2022
1 parent 388f973 commit 782150f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/world/bentobox/limits/commands/LimitTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ private void addMaterialIcons(IslandBlockCount ibc, Map<Material, Integer> matLi
pib.icon(B2M.getOrDefault(en.getKey(), en.getKey()));

int count = ibc == null ? 0 : ibc.getBlockCounts().getOrDefault(en.getKey(), 0);
int value = en.getValue() + (ibc == null ? 0 : ibc.getBlockLimitsOffset().getOrDefault(en.getKey(), 0));
int value = en.getValue();
String color = count >= value ? user.getTranslation("island.limits.max-color") : user.getTranslation("island.limits.regular-color");
pib.description(color
+ user.getTranslation("island.limits.block-limit-syntax",
Expand Down

0 comments on commit 782150f

Please sign in to comment.