Sullys Mod

Sullys Mod

1M Downloads

NullPointerException when calling TortoiseShell.getOwnerUUID()

Snownee opened this issue ยท 3 comments

commented

Here a null check is missing, which leads to a NullPointerException.

Also, I don't think it's appropriate to store an entity in the class, which would prevent the game from releasing memory. The default implementation is fast enough.

commented

Oh thank you! I'll fix this.
What do you mean with default implementation here tho?
Do you mean only using the UUID and not the entity directly?

commented

Oh thank you! I'll fix this. What do you mean with default implementation here tho? Do you mean only using the UUID and not the entity directly?

The default implementation is defined in OwnableEntity

commented

I figured you meant that! Changed that together with the bugfix
Thank you!