switch permission level back to an int internally

This commit is contained in:
Matt Worzala 2021-08-26 11:10:48 -04:00 committed by Matt Worzala
parent 6eac7282af
commit 3ce51ff470

View File

@ -150,7 +150,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
private BelowNameTag belowNameTag;
private byte permissionLevel;
private int permissionLevel;
private boolean reducedDebugScreenInformation;
@ -1591,7 +1591,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
public void setPermissionLevel(int permissionLevel) {
Check.argCondition(!MathUtils.isBetween(permissionLevel, 0, 4), "permissionLevel has to be between 0 and 4");
this.permissionLevel = (byte) permissionLevel;
this.permissionLevel = permissionLevel;
// Magic values: https://wiki.vg/Entity_statuses#Player
// TODO remove magic values