Enderman attackEntityFrom changed

Changed so that if the teleport fails upon being attacked, Endermen will
take damage as normal.
This commit is contained in:
Mithion 2013-03-23 13:40:13 -04:00
parent 4de9793ec9
commit 81ff5d7896

View file

@ -39,3 +39,12 @@
this.setPosition(this.posX, this.posY, this.posZ); this.setPosition(this.posX, this.posY, this.posZ);
if (this.worldObj.getCollidingBoundingBoxes(this, this.boundingBox).isEmpty() && !this.worldObj.isAnyLiquid(this.boundingBox)) if (this.worldObj.getCollidingBoundingBoxes(this, this.boundingBox).isEmpty() && !this.worldObj.isAnyLiquid(this.boundingBox))
@@ -439,7 +446,7 @@
}
}
- return false;
+ return super.attackEntityFrom(par1DamageSource, par2);
}
else
{