-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when extinguishing/igniting campfire using dispenser with Backhand installed #72
Comments
This is an incompatibility with Campfire Backport in case that wasn't clear. The crash occurs because I use a FakePlayer to damage the item in the dispenser, and the FakePlayer doesn't have an offhand. This bug isn't exclusive to Campfire Backport. I've been able to cause the same crash with EnderIO's Killer Joe block (it attacks mobs automatically). There may be other blocks that have this issue. Details: I use a FakePlayer to do a couple things when extinguishing/igniting the campfire from a dispenser.
So when I try to damage the item, this patch tries to get the offhand item on line 81: Backhand/src/main/java/net/tclproject/mysteriumlib/asm/fixes/MysteriumPatchesFixesO.java Lines 74 to 81 in 23dd30c
And then there's a null pointer exception on line 79 here: Backhand/src/main/java/mods/battlegear2/api/core/BattlegearUtils.java Lines 75 to 79 in 23dd30c
Because this returns null: Backhand/src/main/java/mods/battlegear2/api/core/BattlegearUtils.java Lines 83 to 85 in 23dd30c
So I think some null checks around getting the offhand property would be a good way to fix it. |
https://pastebin.com/TqXR2YGN
The text was updated successfully, but these errors were encountered: