Update src/main/java/carpet/mixins/ServerGamePacketListenerImplMixin.java
This commit is contained in:
1 parent
bb1a63ea0b
commit
1121172292
1 file changed
+1
@@ -29,6 +29,7 @@ public class ServerGamePacketListenerImplMixin
|
|||||||
// We should force onto the main thread here
|
// We should force onto the main thread here
|
||||||
// ServerNetworkHandler.handleData can possibly mutate data that isn't
|
// ServerNetworkHandler.handleData can possibly mutate data that isn't
|
||||||
// thread safe, and also allows for client commands to be executed
|
// thread safe, and also allows for client commands to be executed
|
||||||
|
// [TODO] need to investigate if that is actually an issue since carpet doesn't fiddle with its packets.
|
||||||
PacketUtils.ensureRunningOnSameThread(packet, (ServerGamePacketListener) this, player.getLevel());
|
PacketUtils.ensureRunningOnSameThread(packet, (ServerGamePacketListener) this, player.getLevel());
|
||||||
ServerNetworkHandler.handleData(new FriendlyByteBuf(packet.getData().copy()), player);
|
ServerNetworkHandler.handleData(new FriendlyByteBuf(packet.getData().copy()), player);
|
||||||
ci.cancel();
|
ci.cancel();
|
||||||
|
|||||||
Reference in new issue
Block a user