From 2b6db887ed380bf644fa2bbd80559835e4f0ab94 Mon Sep 17 00:00:00 2001
From: Li
Date: Tue, 15 Nov 2022 04:15:13 +1300
Subject: [PATCH] Fix tile id thingy again
---
.../Properties/PublishProfiles/Linux64.pubxml.user | 10 ++++++++++
HorseIsleServer/LibHISP/Server/GameServer.cs | 4 ++--
2 files changed, 12 insertions(+), 2 deletions(-)
create mode 100644 HorseIsleServer/HISPd/Properties/PublishProfiles/Linux64.pubxml.user
diff --git a/HorseIsleServer/HISPd/Properties/PublishProfiles/Linux64.pubxml.user b/HorseIsleServer/HISPd/Properties/PublishProfiles/Linux64.pubxml.user
new file mode 100644
index 0000000..bf40219
--- /dev/null
+++ b/HorseIsleServer/HISPd/Properties/PublishProfiles/Linux64.pubxml.user
@@ -0,0 +1,10 @@
+
+
+
+
+ True|2022-11-14T15:14:26.1245995Z;
+
+
+
\ No newline at end of file
diff --git a/HorseIsleServer/LibHISP/Server/GameServer.cs b/HorseIsleServer/LibHISP/Server/GameServer.cs
index 94d041f..889b1f4 100755
--- a/HorseIsleServer/LibHISP/Server/GameServer.cs
+++ b/HorseIsleServer/LibHISP/Server/GameServer.cs
@@ -6123,9 +6123,9 @@ namespace HISP.Server
returnedMsg = Messages.FormatPlayerHereMessage(usernameStr);
}
- // TODO: REMEMBER TO CHANGE THIS BACK
//byte[] tileInfoPacket = PacketBuilder.CreateTileClickInfo(returnedMsg);
- byte[] tileInfoPacket = PacketBuilder.CreateTileClickInfo("ground: " + Map.GetTileId(x, y, false)-1 + ", overlay: " + Map.GetTileId(x, y, true)-1);
+ // Debug tile id information
+ byte[] tileInfoPacket = PacketBuilder.CreateTileClickInfo("ground: " + (Map.GetTileId(x, y, false)-1).ToString() + ", overlay: " + (Map.GetTileId(x, y, true)-1).ToString());
sender.SendPacket(tileInfoPacket);
}
}