mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-14 13:24:43 +01:00
Improve next package handling
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user