Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-19 14:30:17 +01:00
Wrap firing ServerCustomPayloadEvent in ensureInEventLoop
Dieser Commit ist enthalten in:
Ursprung
96d99c3093
Commit
a1a2959f03
@ -141,8 +141,10 @@ public class JavaCustomPayloadTranslator extends PacketTranslator<ClientboundCus
|
||||
session.sendUpstreamPacket(toSend);
|
||||
});
|
||||
} else {
|
||||
session.ensureInEventLoop(() -> {
|
||||
EventBus eventBus = session.getGeyser().eventBus();
|
||||
eventBus.fire(new ServerCustomPayloadEvent(session, channel, packet.getData()));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren