-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix NPE when rendering turtle's label
Minecraft.hitResult may /technically/ be null when rendering a turtle. In vanilla, this doesn't appear to happen, but other mods (e.g. Immersive Portals) may still take advantage of this. This hitResult is then propagated to BlockEntityRenderDispatcher, where the field was /not/ marked as nullable. This meant we didn't even notice the potential of an NPE! Closes #1775
- Loading branch information
Showing
2 changed files
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters