Fix Map bot

This commit is contained in:
BruceChen 2022-10-04 12:00:10 +08:00
parent b97b226166
commit edaa309559
2 changed files with 4 additions and 1 deletions

View file

@ -102,6 +102,9 @@ namespace MinecraftClient.ChatBots
if (columnsUpdated == 0 && cachedMaps.ContainsKey(mapid)) if (columnsUpdated == 0 && cachedMaps.ContainsKey(mapid))
return; return;
if (rowsUpdated <= 0 && columnsUpdated <= 0)
return;
McMap map = new() McMap map = new()
{ {
MapId = mapid, MapId = mapid,

View file

@ -816,7 +816,7 @@ namespace MinecraftClient.Protocol.Handlers
List<MapIcon> icons = new(); List<MapIcon> icons = new();
// 1,9 + = needs tracking position to be true to get the icons // 1,9 + = needs tracking position to be true to get the icons
if (protocolVersion <= MC_1_9_Version || trackingPosition) if (protocolVersion <= MC_1_16_5_Version || trackingPosition)
{ {
iconcount = dataTypes.ReadNextVarInt(packetData); iconcount = dataTypes.ReadNextVarInt(packetData);