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

View File

@ -50,8 +50,9 @@ public class Behavior implements AbstractGameEventListener, Toggleable {
*/ */
@Override @Override
public final boolean setEnabled(boolean enabled) { public final boolean setEnabled(boolean enabled) {
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();