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);