mirror of
https://github.com/GTNewHorizons/EnderCore.git
synced 2026-11-20 12:09:38 +00:00
tterrag1098/ttCore#35 Fix crash in XP boost
This commit is contained in:
1 parent
ed0828871c
commit
8bce03348c
1 file changed
+1
-1
@@ -45,7 +45,7 @@ public class XPBoostHandler
|
||||
{
|
||||
scheduleXP(entity, getXPBoost(entity, (EntityPlayer) killer));
|
||||
}
|
||||
else if (killer instanceof EntityArrow)
|
||||
else if (killer instanceof EntityArrow && ((EntityArrow) killer).shootingEntity instanceof EntityPlayer)
|
||||
{
|
||||
NBTTagCompound tag = killer.getEntityData();
|
||||
if (tag.hasKey(NBT_KEY) && tag.getInteger(NBT_KEY) >= 0)
|
||||
|
||||
Reference in new issue
Block a user