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) {
return this.enabled;
}
if (this.enabled = enabled) {
this.onEnable();
} else {
this.onDisable();
}
return this.enabled;
}