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