More null stack fixes
This commit is contained in:
parent
c682571be0
commit
5475549c18
10 changed files with 49 additions and 50 deletions
|
@ -493,7 +493,7 @@ public class GenericHandler
|
|||
{
|
||||
for (ItemStack stack : player.inventory.mainInventory)
|
||||
{
|
||||
if (stack != null && stack.getItem() instanceof ItemExperienceBook)
|
||||
if (stack.getItem() instanceof ItemExperienceBook)
|
||||
{
|
||||
ItemExperienceBook.addExperience(stack, event.getOrb().xpValue);
|
||||
event.getOrb().xpValue = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue