You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.
Version
Minecraft 1.15 Describe the bug
If Core.hasClientMod is called before Core.lastServerPlayerEntity is set, then an NPE will be thrown. Core.hasClientMod can be called before the server's presence packet is received and processed, causing this crash.
To Reproduce
Call Core.hasClientMod (called in NBT Crafting's hooks for caching matching stacks)
NPE is thrown
Expected behavior
A null-check should be done which returns false by default if NBT crafting isn't present
Version
Minecraft 1.15
Describe the bug
If
Core.hasClientMod
is called beforeCore.lastServerPlayerEntity
is set, then an NPE will be thrown.Core.hasClientMod
can be called before the server's presence packet is received and processed, causing this crash.To Reproduce
Core.hasClientMod
(called in NBT Crafting's hooks for caching matching stacks)Expected behavior
A null-check should be done which returns false by default if NBT crafting isn't present
Log
https://gist.github.com/Boundarybreaker/d8eb042e76076464773d0ba3dd20053d
Additional context
Occurred when trying out a new compat method for LibCD and NBT Crafting
The text was updated successfully, but these errors were encountered: