From 1eaab510eb9ef2dc1851f76a623b5a6ed02b5535 Mon Sep 17 00:00:00 2001 From: Flowsqy <47575244+Flowsqy@users.noreply.github.com> Date: Wed, 23 Feb 2022 00:40:35 +0100 Subject: [PATCH] A reverse is applicable on a condition --- .../epiceric/shopchest/config/hologram/parser/FormatParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/de/epiceric/shopchest/config/hologram/parser/FormatParser.java b/plugin/src/main/java/de/epiceric/shopchest/config/hologram/parser/FormatParser.java index 9f090f0..7189991 100644 --- a/plugin/src/main/java/de/epiceric/shopchest/config/hologram/parser/FormatParser.java +++ b/plugin/src/main/java/de/epiceric/shopchest/config/hologram/parser/FormatParser.java @@ -230,7 +230,7 @@ public class FormatParser { // Create reversed final Condition reversed; final boolean isValue = nextToken.getType() == Token.VALUE; - if (isValue || nextToken.getType() == Token.VALUE) { + if (isValue || nextToken.getType() == Token.CONDITION) { if (isValue) { final String value = (String) nextToken.getValue(); final P provided = providerFunction.apply(value);