mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 03:15:07 +00:00
Workaround for #2303
This commit is contained in:
1 parent
fa5059a883
commit
00d650926a
1 file changed
+7
-5
@@ -379,6 +379,13 @@ public class EntityDoppleganger extends EntityLiving implements IBotaniaBoss {
|
||||
this.bossInfo.setName(this.getDisplayName());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void heal(float amount) {
|
||||
if(getInvulTime() == 0) {
|
||||
super.heal(amount);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean attackEntityFrom(@Nonnull DamageSource source, float par2) {
|
||||
Entity e = source.getTrueSource();
|
||||
@@ -389,11 +396,6 @@ public class EntityDoppleganger extends EntityLiving implements IBotaniaBoss {
|
||||
if(!playersWhoAttacked.contains(player.getUniqueID()))
|
||||
playersWhoAttacked.add(player.getUniqueID());
|
||||
|
||||
player.isOnLadder();
|
||||
player.isInWater();
|
||||
player.isPotionActive(MobEffects.BLINDNESS);
|
||||
player.isRiding();
|
||||
|
||||
int cap = 25;
|
||||
return super.attackEntityFrom(source, Math.min(cap, par2));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user