mirror of
https://github.com/BentoBoxWorld/Limits.git
synced 2024-11-22 02:25:43 +01:00
Add limits offsets to the GUI and Placeholder
Offsets were not added to the GUI and Placeholder value. Part of #159
This commit is contained in:
parent
b459f8bdb5
commit
5fd461ddea
@ -431,7 +431,12 @@ public class BlockLimitsListener implements Listener {
|
||||
}
|
||||
// Island
|
||||
if (islandCountMap.containsKey(id)) {
|
||||
result.putAll(islandCountMap.get(id).getBlockLimits());
|
||||
IslandBlockCount islandBlockCount = islandCountMap.get(id);
|
||||
result.putAll(islandBlockCount.getBlockLimits());
|
||||
|
||||
// Add offsets to the every limit.
|
||||
islandBlockCount.getBlockLimitsOffset().forEach((material, offset) ->
|
||||
result.put(material, result.getOrDefault(material, 0) + offset));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user