mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 12:19:46 +00:00
Excaliber's beams no longer home on bosses.
This commit is contained in:
1 parent
0893a0209f
commit
755a04a9ab
1 file changed
+2
-1
@@ -16,6 +16,7 @@ import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import net.minecraft.entity.ai.attributes.AttributeModifier;
|
||||
import net.minecraft.entity.boss.IBossDisplayData;
|
||||
import net.minecraft.entity.monster.IMob;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.projectile.EntityThrowable;
|
||||
@@ -163,7 +164,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 || !(living instanceof IMob) || living.hurtTime != 0)
|
||||
if(living instanceof EntityPlayer || living instanceof IBossDisplayData || !(living instanceof IMob) || living.hurtTime != 0)
|
||||
continue;
|
||||
|
||||
homeID = living.getEntityId();
|
||||
|
||||
Reference in new issue
Block a user