From ce3485c823705bb6d86d2267b7da44c4ff434877 Mon Sep 17 00:00:00 2001 From: NEZNAMY Date: Wed, 23 Oct 2024 21:04:09 +0200 Subject: [PATCH] [Layout] Fix player group condition not getting refreshed properly --- .../me/neznamy/tab/shared/features/layout/LayoutPattern.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/main/java/me/neznamy/tab/shared/features/layout/LayoutPattern.java b/shared/src/main/java/me/neznamy/tab/shared/features/layout/LayoutPattern.java index fec8493b3..1e6a3ea3c 100644 --- a/shared/src/main/java/me/neznamy/tab/shared/features/layout/LayoutPattern.java +++ b/shared/src/main/java/me/neznamy/tab/shared/features/layout/LayoutPattern.java @@ -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) {