PC-506
Fixes an issue where the creeper's passive in SSM would activate when they took starvation damage.
This commit is contained in:
parent
35b00679e0
commit
09957c203b
@ -39,10 +39,7 @@ public class PerkCreeperElectricity extends Perk
|
|||||||
if (event.IsCancelled())
|
if (event.IsCancelled())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (event.GetCause() == DamageCause.ENTITY_ATTACK)
|
if (event.GetCause() == DamageCause.ENTITY_ATTACK || event.GetCause() == DamageCause.FIRE_TICK || event.GetCause() == DamageCause.STARVATION)
|
||||||
return;
|
|
||||||
|
|
||||||
if (event.GetCause() == DamageCause.FIRE_TICK)
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Player damagee = event.GetDamageePlayer();
|
Player damagee = event.GetDamageePlayer();
|
||||||
|
Loading…
Reference in New Issue
Block a user