Don't send events to mods if plugin cancels before modifications.
Fixes
@@ -238,7 +238,8 @@ public boolean post(Event spongeEvent, net.minecraftforge.fml.common.eventhandle
}
// If there are no forge listeners for event, skip sync
- if (listeners.length > 0) {
+ // If plugin cancelled event before modifications, ignore mods
+ if (listeners.length > 0 && !forgeEvent.isCanceled()) {
for (IEventListener listener : listeners) {
try {
if (listener instanceof IMixinASMEventHandler) {
