BUG: Crash when a trader is broken while another player is in a GUI
FoxMcloud5655 opened this issue ยท 1 comments
Minecraft Version
1.20.1
Forge Version
47.2.20
Lightman's Currency Version
2.2.2.0
Environment Type
Dedicated Server (Bug/crash happened while connected to a server or while the dedicated server was booting)
Other relevant Mods
No response
Describe the bug
When a player is interacting with anything from Lightman's Currency and has a GUI open, if the block they're interacting with is broken (i.e. by the owning player), the client with the GUI open crashes.
Probably can be fixed pretty easily by performing a null check on the supplier, and if null, closing the GUI.
To Reproduce
- Place down a block with a GUI from Lightman's Currency (Pay Gate, Display Case, etc.)
- Have another player open the GUI.
- Break the block.
- Observe as the other player crashes.