Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
aedfb598
Commit
aedfb598
authored
Apr 19, 2022
by
Melledy
Browse files
Remove duplicate function and fix stackoverflow issue
parent
06a50365
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/GenshinPlayer.java
View file @
aedfb598
...
...
@@ -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
);
...
...
src/main/java/emu/grasscutter/server/game/GameServer.java
View file @
aedfb598
...
...
@@ -118,7 +118,7 @@ public final class GameServer extends MihoyoKcpServer {
}
// Get from online players
GenshinPlayer
player
=
this
.
getPlayer
ByUid
(
id
);
GenshinPlayer
player
=
this
.
getPlayer
s
().
get
(
id
);
if
(!
allowOfflinePlayers
)
{
return
player
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment