Skip to content

Commit

Permalink
Merge pull request #27 from Keriils/fix-unnamed-bug
Browse files Browse the repository at this point in the history
fix unnamed bug
  • Loading branch information
Keriils authored Sep 15, 2024
2 parents 84dc0f9 + 0620405 commit 9eb91d5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ public class EnhanceExUHealingAxe {
@SubscribeEvent
public void onHeldHealingAxe(PlayerEvent event) {
EntityPlayer entityPlayer = event.entityPlayer;
if (entityPlayer.worldObj.getTotalWorldTime() % 40L == 0L && entityPlayer.getHeldItem() != null
if (entityPlayer != null && entityPlayer.worldObj.getTotalWorldTime() % 40L == 0L
&& entityPlayer.getHeldItem() != null
&& (entityPlayer.getHeldItem()
.getItem() == GetModItemWhileWorldLoad.getItemHealingAxe())) {
entityPlayer.getFoodStats()
Expand Down

0 comments on commit 9eb91d5

Please sign in to comment.