nit 2
This commit is contained in:
parent
eac5184d4d
commit
71473ab17d
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user