mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 03:49:14 +00:00
Because IEventBus#post returns true on cancellation and the patched-in hooks inverts the return of the ForgeHooks method, if the player whose permission level is being changed is online and the event is not cancelled, the permission change _is_ cancelled. The fix is inverting the patched-in hooks and the default return value of the ForgeHooks method, so that the permission change is cancelled only if the player is online, the event is fired, and the event is cancelled. Fixes #8088