Beams from Excaliber no longer home on players.

This commit is contained in:
Lizbeth Rika committed 2015-05-12 18:27:11 +01:00
1 parent 0f6eb9486c
commit 3491c7d003
1 file changed
+1 -1
@@ -162,7 +162,7 @@ public class ItemExcaliber extends ItemManasteelSword implements IRelic, ILensEf
AxisAlignedBB axis1 = AxisAlignedBB.getBoundingBox(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ).expand(5, 5, 5);
List<EntityLivingBase> entities = entity.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis1);
for(EntityLivingBase living : entities) {
if(living instanceof EntityPlayer && (((EntityPlayer) living).getCommandSenderName().equals(attacker) || MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled()) || living.hurtTime != 0)
if(!(living instanceof EntityPlayer) && living.hurtTime != 0)
continue;
homeID = living.getEntityId();