Add setLocked to Age

This commit is contained in:
fullwall 2020-11-17 09:04:24 +08:00
parent 1e050bb89d
commit e29f05156d

View File

@ -73,6 +73,14 @@ public class Age extends Trait implements Toggleable {
}
}
public void setLocked(boolean locked) {
this.locked = locked;
if (isAgeable()) {
ageable.setAgeLock(locked);
}
}
/**
* Toggles the age lock variable and returns whether the age is currently locked.
*/