mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-31 02:22:55 +08:00
Remove duplicate function and fix stackoverflow issue
This commit is contained in:
parent
812811c550
commit
b9c69408f9
@ -572,15 +572,6 @@ public class GenshinPlayer {
|
|||||||
this.sendPacket(new PacketPrivateChatNotify(sender.getUid(), this.getUid(), message.toString()));
|
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) {
|
public void interactWith(int gadgetEntityId) {
|
||||||
GenshinEntity entity = getScene().getEntityById(gadgetEntityId);
|
GenshinEntity entity = getScene().getEntityById(gadgetEntityId);
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ public final class GameServer extends MihoyoKcpServer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get from online players
|
// Get from online players
|
||||||
GenshinPlayer player = this.getPlayerByUid(id);
|
GenshinPlayer player = this.getPlayers().get(id);
|
||||||
|
|
||||||
if (!allowOfflinePlayers) {
|
if (!allowOfflinePlayers) {
|
||||||
return player;
|
return player;
|
||||||
|
Loading…
Reference in New Issue
Block a user