PlayerInventory field in player is now protected, to allow unsafe modifications when extending the class

This commit is contained in:
themode 2020-12-29 16:42:07 +01:00
parent 817036fd87
commit 8da6148152
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ public class Player extends LivingEntity implements CommandSender {
private float exp;
private int level;
private final PlayerInventory inventory;
protected PlayerInventory inventory;
private Inventory openInventory;
// Used internally to allow the closing of inventory within the inventory listener
private boolean didCloseInventory;