Commit aedfb598 authored by Melledy's avatar Melledy
Browse files

Remove duplicate function and fix stackoverflow issue

parent 06a50365
......@@ -571,15 +571,6 @@ public class GenshinPlayer {
public void sendMessage(GenshinPlayer sender, Object message) {
this.sendPacket(new PacketPrivateChatNotify(sender.getUid(), this.getUid(), message.toString()));
}
/**
* Sends a message to another player.
* @param sender The sender of the message.
* @param message The message to send.
*/
public void sendMessage(GenshinPlayer sender, Object message) {
this.sendPacket(new PacketPrivateChatNotify(sender.getId(), this.getId(), message.toString()));
}
public void interactWith(int gadgetEntityId) {
GenshinEntity entity = getScene().getEntityById(gadgetEntityId);
......
......@@ -118,7 +118,7 @@ public final class GameServer extends MihoyoKcpServer {
}
// Get from online players
GenshinPlayer player = this.getPlayerByUid(id);
GenshinPlayer player = this.getPlayers().get(id);
if (!allowOfflinePlayers) {
return player;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment