fuming
This commit is contained in:
parent
b4ddd98bcb
commit
5f0009a060
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user