From 974f68ca116d92a98e20dd00e341d46cbb0401d1 Mon Sep 17 00:00:00 2001 From: jdrueckert Date: Sun, 27 Oct 2024 20:05:18 +0100 Subject: [PATCH] fix: switch typo in ConditionAction (#5288) --- .../logic/behavior/actions/conditions/ConditionAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/main/java/org/terasology/engine/logic/behavior/actions/conditions/ConditionAction.java b/engine/src/main/java/org/terasology/engine/logic/behavior/actions/conditions/ConditionAction.java index 62aa7df2904..6f74dd690e6 100644 --- a/engine/src/main/java/org/terasology/engine/logic/behavior/actions/conditions/ConditionAction.java +++ b/engine/src/main/java/org/terasology/engine/logic/behavior/actions/conditions/ConditionAction.java @@ -127,7 +127,7 @@ protected boolean condition(Actor actor) throws ClassNotFoundException, NoSuchFi break; case "!": case "!=": - passing = (Double) fieldValue == Double.parseDouble(secondValue); + passing = (Double) fieldValue != Double.parseDouble(secondValue); break; case "<=": passing = ((Number) fieldValue).doubleValue() <= Double.parseDouble(secondValue);