Improve next package handling

This commit is contained in:
Melledy
2025-11-09 00:23:33 -08:00
parent b5290f8c0a
commit 7d5fef1020
3 changed files with 16 additions and 7 deletions

View File

@@ -505,6 +505,10 @@ public class Player implements GameDatabaseObject {
// Next packages
public boolean hasNextPackages() {
return this.getNextPackages().size() > 0;
}
public void addNextPackage(int msgId, ProtoMessage<?> proto) {
this.getNextPackages().add(new NetMsgPacket(msgId, proto));
}