Allow > 32,767 map axis lengths because why not

This commit is contained in:
UnknownShadow200 2017-02-11 20:29:14 +11:00
parent 0121a1820f
commit 0a9bb9fafd

View file

@ -130,9 +130,9 @@ namespace ClassicalSharp.Network.Protocols {
}
prevScreen = null;
int mapWidth = reader.ReadInt16();
int mapHeight = reader.ReadInt16();
int mapLength = reader.ReadInt16();
int mapWidth = reader.ReadUInt16();
int mapHeight = reader.ReadUInt16();
int mapLength = reader.ReadUInt16();
double loadingMs = (DateTime.UtcNow - mapReceiveStart).TotalMilliseconds;
Utils.LogDebug("map loading took: " + loadingMs);