Sync ServerChatEvent during event post. Fixes
@@ -310,7 +310,7 @@ private static boolean createAndPostServerChatEvent(SpongeToForgeEventData event
forgeEvent = new ServerChatEvent(player, spongeEvent.getRawMessage().toPlain(), SpongeTexts.toComponent(spongeEvent.getMessage()));
eventData.setForgeEvent(forgeEvent);
}
- forgeEventBus.post(forgeEvent, true);
+ forgeEventBus.post(eventData);
return true;
}
@@ -346,7 +346,7 @@ private static boolean createAndPostLivingUseItemEvent(SpongeToForgeEventData ev
forgeEvent.setDuration(spongeEvent.getRemainingDuration());
}
- forgeEventBus.post(forgeEvent, true);
+ forgeEventBus.post(eventData);
spongeEvent.setRemainingDuration(forgeEvent.getDuration());
// Cancelling the Forge tick event stops all usage of the item, whereas
