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
bddb96e3
Commit
bddb96e3
authored
Jun 17, 2022
by
zhaodice
Committed by
Melledy
Jun 16, 2022
Browse files
Fix friend request pending list
parent
359e8359
Changes
2
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/packet/recv/HandlerGetPlayerAskFriendListReq.java
0 → 100644
View file @
bddb96e3
package
emu.grasscutter.server.packet.recv
;
import
emu.grasscutter.net.packet.Opcodes
;
import
emu.grasscutter.net.packet.PacketHandler
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.server.game.GameSession
;
import
emu.grasscutter.server.packet.send.PacketGetPlayerAskFriendListRsp
;
@Opcodes
(
PacketOpcodes
.
GetPlayerAskFriendListReq
)
public
class
HandlerGetPlayerAskFriendListReq
extends
PacketHandler
{
@Override
public
void
handle
(
GameSession
session
,
byte
[]
header
,
byte
[]
payload
)
throws
Exception
{
session
.
send
(
new
PacketGetPlayerAskFriendListRsp
(
session
.
getPlayer
()));
}
}
src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerFriendListRsp.java
View file @
bddb96e3
...
@@ -40,14 +40,6 @@ public class PacketGetPlayerFriendListRsp extends BasePacket {
...
@@ -40,14 +40,6 @@ public class PacketGetPlayerFriendListRsp extends BasePacket {
proto
.
addFriendList
(
friendship
.
toProto
());
proto
.
addFriendList
(
friendship
.
toProto
());
}
}
for
(
Friendship
friendship
:
player
.
getFriendsList
().
getPendingFriends
().
values
())
{
if
(
friendship
.
getAskerId
()
==
player
.
getUid
())
{
continue
;
}
proto
.
addAskFriendList
(
friendship
.
toProto
());
}
this
.
setData
(
proto
);
this
.
setData
(
proto
);
}
}
}
}
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