Closed olee closed 9 years ago
There is currently no way to check if an event handler has been registered or not. But when trying to unregister a not-registered event handler, Minecraft crashes with a NullPointerException. This is a simple fix to prevent such crashes.
(Same patch applies for 1.8 and newer)
(Archive Only: Merged into Forge proper) The Forge Mod Loader - an opensource replacement mod loader for minecraft
Oh sorry, missed that one. https://github.com/MinecraftForge/MinecraftForge/pull/2103
There is currently no way to check if an event handler has been registered or not. But when trying to unregister a not-registered event handler, Minecraft crashes with a NullPointerException. This is a simple fix to prevent such crashes.
(Same patch applies for 1.8 and newer)