From 5e6879f9987b3e7e1ce9fef508e7bfd76d6f7282 Mon Sep 17 00:00:00 2001 From: Josephine Rueckert Date: Sun, 27 Oct 2024 15:16:52 +0100 Subject: [PATCH] fix: switch typo in ConditionAction --- .../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);