no invuln temp fix

This commit is contained in:
Sen 2025-04-01 01:32:19 +02:00
parent cb3787349b
commit eea23233f4
19 changed files with 220 additions and 217 deletions

View file

@ -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() {