no invuln temp fix
This commit is contained in:
parent
cb3787349b
commit
eea23233f4
19 changed files with 220 additions and 217 deletions
|
@ -87,29 +87,29 @@ public class EntityCrystal extends Entity
|
|||
*/
|
||||
public boolean attackEntityFrom(DamageSource source, int amount)
|
||||
{
|
||||
if (this.isEntityInvulnerable(source))
|
||||
// if (this.isEntityInvulnerable(source))
|
||||
// {
|
||||
// return false;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
if (!this.dead && !this.worldObj.client)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!this.dead && !this.worldObj.client)
|
||||
{
|
||||
// this.health = 0;
|
||||
//
|
||||
// if (this.health <= 0)
|
||||
// {
|
||||
this.setDead();
|
||||
this.setDead();
|
||||
|
||||
// if (!this.worldObj.client)
|
||||
// {
|
||||
this.worldObj.createExplosion(null, this.posX, this.posY, this.posZ, 6.0F, true);
|
||||
this.worldObj.createExplosion(null, this.posX, this.posY, this.posZ, 6.0F, true);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
// }
|
||||
}
|
||||
|
||||
public int getTrackingRange() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue