1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-07-31 03:40:52 +02:00

Fix save inventory after logout for new players.

This commit is contained in:
snowleo
2011-06-07 22:18:57 +02:00
parent ca6957bec1
commit 40a919c9aa

View File

@@ -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;
}