Should fix fakePlayer lookup NPE #546
I think it's safe to say that if the player is null here, the places we use this check should probably not continue. Will see how it goes. Also added the check to imperfect rituals and removed a redundant check from the dagger.
This commit is contained in:
parent
9aac50542b
commit
5ac78b2dea
3 changed files with 4 additions and 4 deletions
|
@ -123,7 +123,7 @@ public class ItemSacrificialDagger extends Item
|
|||
for (int l = 0; l < 8; ++l)
|
||||
world.spawnParticle(EnumParticleTypes.REDSTONE, posX + Math.random() - Math.random(), posY + Math.random() - Math.random(), posZ + Math.random() - Math.random(), f1, f2, f3);
|
||||
|
||||
if (!world.isRemote && PlayerHelper.isFakePlayer(player))
|
||||
if (!world.isRemote)
|
||||
return stack;
|
||||
|
||||
// TODO - Check if SoulFray is active
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue