Fix respawn packet (#1848)

This commit is contained in:
ReinforceZwei 2021-12-11 21:06:17 +08:00 committed by GitHub
parent bdcf3e5aa2
commit 333358c73b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -355,7 +355,10 @@ namespace MinecraftClient.Protocol.Handlers
if (protocolversion >= MC116Version)
{
// TODO handle dimensions for 1.16+, needed for terrain handling
dataTypes.ReadNextString(packetData);
if (protocolversion >= MC1162Version)
dataTypes.ReadNextNbt(packetData);
else
dataTypes.ReadNextString(packetData);
this.currentDimension = 0;
}
else