Enderman Overhaul

Enderman Overhaul

19M Downloads

[Bug]: Creating a pet enderman without an owner crashes the game

JaisDK opened this issue ยท 0 comments

commented

Bug Description

There's an improper null check here which just makes the game crash when the value of this.getServer() is actually null. Not that getServer() is marked as nullable and making the IDE shut up with a Objects.requireNonNull is not good enough.

https://github.com/bonsaistudi0s/Enderman-Overhaul/blob/1.21.x/src/main/java/tech/alexnijjar/endermanoverhaul/common/entities/pets/BasePetEnderman.java#L130

How to Reproduce?

No response

Expected Behavior

No response

Version

2.0.2

Mod Loader Version

1.21.1 - 21.1.169

Mod Loader

NeoForge

Logs or additional context

No response

Code of Conduct

  • I have searched the issue tracker and confirmed that the issue has not been reported
  • I have checked the FAQ (if one is present) and my issue is not listed
  • I have verified that I am using the latest version of the mod
  • I have verified that I have installed all the required dependencies for the mod
  • I have verified that I do not have Optifine installed. We will close issues if we detect Optifine is in your pack. We cannot fix Optifine issues. Please do not report issues with Optifine present.