mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-11 23:05:27 +08:00
Fix whitespace [skip actions]
This commit is contained in:
committed by
Melledy
Unverified
parent
510d564bcb
commit
ae2d1fe438
@@ -9,21 +9,21 @@ import emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp
|
||||
import emu.grasscutter.net.proto.RetcodeOuterClass.Retcode;
|
||||
|
||||
public class PacketPullPrivateChatRsp extends BasePacket {
|
||||
|
||||
public PacketPullPrivateChatRsp(List<ChatInfo> history) {
|
||||
super(PacketOpcodes.PullPrivateChatRsp);
|
||||
|
||||
PullPrivateChatRsp.Builder builder = PullPrivateChatRsp.newBuilder();
|
||||
public PacketPullPrivateChatRsp(List<ChatInfo> history) {
|
||||
super(PacketOpcodes.PullPrivateChatRsp);
|
||||
|
||||
if (history == null) {
|
||||
builder.setRetcode(Retcode.RET_FAIL_VALUE);
|
||||
}
|
||||
else {
|
||||
for (var info : history) {
|
||||
builder.addChatInfo(info);
|
||||
}
|
||||
}
|
||||
|
||||
this.setData(builder.build());
|
||||
}
|
||||
PullPrivateChatRsp.Builder builder = PullPrivateChatRsp.newBuilder();
|
||||
|
||||
if (history == null) {
|
||||
builder.setRetcode(Retcode.RET_FAIL_VALUE);
|
||||
}
|
||||
else {
|
||||
for (var info : history) {
|
||||
builder.addChatInfo(info);
|
||||
}
|
||||
}
|
||||
|
||||
this.setData(builder.build());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user