21w11a mappings

This commit is contained in:
gnembon committed 2021-03-31 19:20:44 -03:00
1 parent 502c4e270e
commit b49b99aea6
6 files changed
+13 -13

No files matched your search

@@ -129,7 +129,7 @@ public class ClientNetworkHandler
private static void onSyncData(PacketByteBuf data, ClientPlayerEntity player)
{
NbtCompound compound = data.readCompoundTag();
NbtCompound compound = data.readCompound();
if (compound == null) return;
for (String key: compound.getKeys())
{
@@ -149,7 +149,7 @@ public class ClientNetworkHandler
outer.put("clientCommand", tag);
CarpetClient.getPlayer().networkHandler.sendPacket(new CustomPayloadC2SPacket(
CarpetClient.CARPET_CHANNEL,
(new PacketByteBuf(Unpooled.buffer())).writeVarInt(CarpetClient.DATA).writeCompoundTag(outer)
(new PacketByteBuf(Unpooled.buffer())).writeVarInt(CarpetClient.DATA).writeCompound(outer)
));
}
}
@@ -138,7 +138,7 @@ public class ServerNetworkHandler
private static void onClientData(ServerPlayerEntity player, PacketByteBuf data)
{
NbtCompound compound = data.readCompoundTag();
NbtCompound compound = data.readCompound();
if (compound == null) return;
for (String key: compound.getKeys())
{
@@ -323,7 +323,7 @@ public class ServerNetworkHandler
{
PacketByteBuf packetBuf = new PacketByteBuf(Unpooled.buffer());
packetBuf.writeVarInt(CarpetClient.DATA);
packetBuf.writeCompoundTag(tag);
packetBuf.writeCompound(tag);
return packetBuf;
}