Skip to content

Commit

Permalink
Call superclass onDeath methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ACGaming committed Oct 26, 2024
1 parent 242d205 commit 7212846
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public void setSkin(int skinType)
@Override
public void onDeath(DamageSource cause)
{
super.onDeath(cause);
if (cause.getTrueSource() instanceof EntityPlayerMP)
{
HSAdvancements.ENCOUNTER_ECTOGLOBIN.trigger((EntityPlayerMP) cause.getTrueSource());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ protected void applyEntityAttributes()
@Override
public void onDeath(DamageSource cause)
{
super.onDeath(cause);
if (cause.getTrueSource() instanceof EntityPlayerMP)
{
HSAdvancements.ENCOUNTER_HARBINGER.trigger((EntityPlayerMP) cause.getTrueSource());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public void setSkin(int skinType)
@Override
public void onDeath(DamageSource cause)
{
super.onDeath(cause);
if (cause.getTrueSource() instanceof EntityPlayerMP)
{
HSAdvancements.ENCOUNTER_HEMOGLOBIN.trigger((EntityPlayerMP) cause.getTrueSource());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public HSEntitySpectralHuman(World world)
@Override
public void onDeath(DamageSource cause)
{
super.onDeath(cause);
if (cause.getTrueSource() instanceof EntityPlayerMP)
{
HSAdvancements.ENCOUNTER_SPECTRAL_HUMAN.trigger((EntityPlayerMP) cause.getTrueSource());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public HSEntitySpectralMiner(World world)
@Override
public void onDeath(DamageSource cause)
{
super.onDeath(cause);
if (cause.getTrueSource() instanceof EntityPlayerMP)
{
HSAdvancements.ENCOUNTER_SPECTRAL_MINER.trigger((EntityPlayerMP) cause.getTrueSource());
Expand Down

0 comments on commit 7212846

Please sign in to comment.