This commit is contained in:
Leijurv 2018-09-16 19:34:18 -07:00
parent eac5184d4d
commit 71473ab17d
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -53,13 +53,11 @@ public class Behavior implements AbstractGameEventListener, Toggleable {
if (enabled == this.enabled) { if (enabled == this.enabled) {
return this.enabled; return this.enabled;
} }
if (this.enabled = enabled) { if (this.enabled = enabled) {
this.onEnable(); this.onEnable();
} else { } else {
this.onDisable(); this.onDisable();
} }
return this.enabled; return this.enabled;
} }