mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-14 01:04:16 +00:00
Beams from Excaliber no longer home on players.
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user