From 6613b0cb8783437b98be0a9a7094e4b66131880f Mon Sep 17 00:00:00 2001
From: Li
Date: Tue, 15 Nov 2022 04:11:06 +1300
Subject: [PATCH] Fix tile debug feature
---
HorseIsleServer/LibHISP/Server/GameServer.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/HorseIsleServer/LibHISP/Server/GameServer.cs b/HorseIsleServer/LibHISP/Server/GameServer.cs
index 68039a1..94d041f 100755
--- a/HorseIsleServer/LibHISP/Server/GameServer.cs
+++ b/HorseIsleServer/LibHISP/Server/GameServer.cs
@@ -6125,7 +6125,7 @@ namespace HISP.Server
}
// TODO: REMEMBER TO CHANGE THIS BACK
//byte[] tileInfoPacket = PacketBuilder.CreateTileClickInfo(returnedMsg);
- byte[] tileInfoPacket = PacketBuilder.CreateTileClickInfo("ground: " + Map.GetTileId(x, y, false) + ", overlay: " + Map.GetTileId(x, y, true));
+ byte[] tileInfoPacket = PacketBuilder.CreateTileClickInfo("ground: " + Map.GetTileId(x, y, false)-1 + ", overlay: " + Map.GetTileId(x, y, true)-1);
sender.SendPacket(tileInfoPacket);
}
}