Skip to content

Commit

Permalink
[Layout] Fix player group condition not getting refreshed properly
Browse files Browse the repository at this point in the history
  • Loading branch information
NEZNAMY committed Oct 23, 2024
1 parent 90a99d3 commit ce3485c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void addFixedSlot(@NotNull FixedSlotDefinition def) {

public void addGroup(@NotNull String name, @Nullable String condition, int[] slots) {
groups.add(new GroupPattern(name, condition, Arrays.stream(slots).filter(slot -> !fixedSlots.containsKey(slot)).toArray()));
if (condition != null) addUsedPlaceholder(TabConstants.Placeholder.condition(condition));
if (condition != null) addUsedPlaceholder(TabConstants.Placeholder.condition(Condition.getCondition(condition).getName()));
}

public boolean isConditionMet(@NotNull TabPlayer p) {
Expand Down

0 comments on commit ce3485c

Please sign in to comment.