Player NPE check for Item setEnchantLevel.

This commit is contained in:
MobiusDevelopment
2024-09-10 06:11:02 +03:00
parent 1086d053e3
commit 25f27fd464
30 changed files with 310 additions and 140 deletions

View File

@ -1040,7 +1040,11 @@ public class Item extends WorldObject
applyEnchantStats();
_storedInDb = false;
getActingPlayer().getInventory().getPaperdollCache().clearArmorSetEnchant();
final Player player = getActingPlayer();
if (player != null)
{
player.getInventory().getPaperdollCache().clearArmorSetEnchant();
}
}
/**