mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix Map bot
This commit is contained in:
parent
b97b226166
commit
edaa309559
2 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue