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) {
|
||||
return this.enabled;
|
||||
}
|
||||
|
||||
if (this.enabled = enabled) {
|
||||
this.onEnable();
|
||||
} else {
|
||||
this.onDisable();
|
||||
}
|
||||
|
||||
return this.enabled;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user