resurrecting elders, fixes #141

This commit is contained in:
gnembon committed 2020-02-08 15:19:27 -04:00
1 parent c3137203b2
commit 148a3a0676
1 file changed
+1 -1
@@ -24,7 +24,7 @@ public abstract class GuardianEntityMixin extends HostileEntity
@Override
public void onStruckByLightning(LightningEntity lightning)
{
if (!this.world.isClient && !this.removed && CarpetSettings.renewableSponges)
if (!this.world.isClient && !this.removed && CarpetSettings.renewableSponges && !((Object)this instanceof ElderGuardianEntity))
{
ElderGuardianEntity elderGuardian = new ElderGuardianEntity(EntityType.ELDER_GUARDIAN ,this.world);
elderGuardian.refreshPositionAndAngles(this.getX(), this.getY(), this.getZ(), this.yaw, this.pitch);