remove unnecessary command parameter
This commit is contained in:
1 parent
36c09e3c88
commit
cd572695b6
5 files changed
+23
-45
No files matched your search
@@ -36,7 +36,7 @@ public abstract class ClientPacketListener_customPacketsMixin extends ClientComm
|
||||
{
|
||||
if (packet instanceof CarpetClient.CarpetPayload cpp)
|
||||
{
|
||||
ClientNetworkHandler.handleData(cpp, minecraft.player);
|
||||
ClientNetworkHandler.onServerData(cpp.data(), minecraft.player);
|
||||
ci.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ public class ServerCommonPacketListenerimpl_connectionMixin
|
||||
// ServerNetworkHandler.handleData can possibly mutate data that isn't
|
||||
// thread safe, and also allows for client commands to be executed
|
||||
PacketUtils.ensureRunningOnSameThread(serverboundCustomPayloadPacket, (ServerGamePacketListener) this, impl.player.serverLevel());
|
||||
ServerNetworkHandler.handleData(cpp, impl.player);
|
||||
ServerNetworkHandler.onClientData(impl.player, cpp.data());
|
||||
ci.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user