Fixed bug where "ChunkFullyLoaded" was not updated below 1.17

This commit is contained in:
BruceChen 2022-07-25 17:04:14 +08:00
parent b0b45a74a0
commit f0af851df8
2 changed files with 2 additions and 1 deletions

View file

@ -2037,7 +2037,7 @@ namespace MinecraftClient.Protocol.Handlers
packet.AddRange(dataTypes.GetVarInt(mode)); // Mode
else packet.Add(mode);
// 1.17+
// 1.17+ Array of changed slots
if (protocolversion >= MC117Version)
{
packet.AddRange(dataTypes.GetVarInt(changedSlots.Count)); // Length of the array

View file

@ -491,6 +491,7 @@ namespace MinecraftClient.Protocol.Handlers
}
}
}
handler.GetWorld()[chunkX, chunkZ].FullyLoaded = true;
}
}
}