This commit is contained in:
Leijurv 2018-09-16 19:30:47 -07:00
parent 5f0009a060
commit eac5184d4d
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -40,7 +40,7 @@ public class Behavior implements AbstractGameEventListener, Toggleable {
*/ */
@Override @Override
public final boolean toggle() { public final boolean toggle() {
return this.setEnabled(!this.enabled); return this.setEnabled(!this.isEnabled());
} }
/** /**