Expand the AABB of the Damaging Lens and Terra Blade bursts.

This commit is contained in:
Vasco Lavos committed 2014-07-11 03:08:03 +01:00
1 parent c914be48c8
commit 5ff5fb01c0
2 files changed
+2 -2

No files matched your search

@@ -364,7 +364,7 @@ public class ItemLens extends ItemMod implements ILens {
boolean magnetized = entity.getEntityData().hasKey("Botania:Magnetized");
switch(stack.getItemDamage()) {
case DAMAGE : {
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ);
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ).expand(1, 1, 1);
List<EntityLivingBase> entities = entity.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
for(EntityLivingBase living : entities) {
if(living instanceof EntityPlayer)
@@ -85,7 +85,7 @@ public class ItemTerraSword extends ItemManasteelSword implements ILensEffect {
@Override
public void updateBurst(IManaBurst burst, ItemStack stack) {
EntityThrowable entity = (EntityThrowable) burst;
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ);
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ).expand(1, 1, 1);
List<EntityLivingBase> entities = entity.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
for(EntityLivingBase living : entities) {
if(living instanceof EntityPlayer)