Skip to content

Commit

Permalink
Fixed NPE with MFR grinder fake-world
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDarkDnKTv authored and juanmuscaria committed May 20, 2023
1 parent 5dd5521 commit ff00464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patches/net/minecraft/entity/EntityLiving.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
}
}
+ // Cauldron start - Force despawn of entity if a player isn't near
+ else if (this.worldObj.cauldronConfig.entityDespawnImmediate && this.canDespawn())
+ else if (this.worldObj.cauldronConfig != null && this.worldObj.cauldronConfig.entityDespawnImmediate && this.canDespawn())
+ {
+ this.despawn("No Player : Immediate");
+ }
Expand Down

0 comments on commit ff00464

Please sign in to comment.