mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Fix save inventory after logout for new players.
This commit is contained in:
parent
f04b7133eb
commit
75973f69a5
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@ public abstract class UserData extends PlayerExtension implements IConf
|
|||
private ItemStack[] _getSavedInventory()
|
||||
{
|
||||
int size = config.getInt("inventory.size", 0);
|
||||
if (getInventory() != null && (size < 1 || size > getInventory().getSize()))
|
||||
if (size < 1 || (getInventory() != null && size > getInventory().getSize()))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue