fuming
This commit is contained in:
parent
b4ddd98bcb
commit
5f0009a060
@ -50,8 +50,9 @@ public class Behavior implements AbstractGameEventListener, Toggleable {
|
||||
*/
|
||||
@Override
|
||||
public final boolean setEnabled(boolean enabled) {
|
||||
if (enabled == this.enabled)
|
||||
if (enabled == this.enabled) {
|
||||
return this.enabled;
|
||||
}
|
||||
|
||||
if (this.enabled = enabled) {
|
||||
this.onEnable();
|
||||
|
Loading…
Reference in New Issue
Block a user