Skip to content

Commit 5e6879f

Browse files
committed
fix: switch typo in ConditionAction
1 parent 9229926 commit 5e6879f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/src/main/java/org/terasology/engine/logic/behavior/actions/conditions/ConditionAction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ protected boolean condition(Actor actor) throws ClassNotFoundException, NoSuchFi
127127
break;
128128
case "!":
129129
case "!=":
130-
passing = (Double) fieldValue == Double.parseDouble(secondValue);
130+
passing = (Double) fieldValue != Double.parseDouble(secondValue);
131131
break;
132132
case "<=":
133133
passing = ((Number) fieldValue).doubleValue() <= Double.parseDouble(secondValue);

0 commit comments

Comments
 (0)