Fixed some transient variable errors as well as ODB loading etiquette

This commit is contained in:
Obique PSWG
2015-10-13 22:11:58 -05:00
parent b16136c12d
commit 6b7a746199
2 changed files with 17 additions and 5 deletions
+8 -4
View File
@@ -37,6 +37,8 @@ import resources.objects.creature.CreatureObject;
import resources.player.Player;
import utilities.Encoder;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.Serializable;
import java.nio.ByteBuffer;
import java.util.HashMap;
@@ -55,6 +57,12 @@ public class GroupObject extends SWGObject { // Extends INTO or TANO?
public GroupObject(long objectId) {
super(objectId, Baseline.BaselineType.GRUP);
pickupPointTimer = new PickupPointTimer();
}
private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException {
ois.defaultReadObject();
pickupPointTimer = new PickupPointTimer();
}
@Override
@@ -177,10 +185,6 @@ public class GroupObject extends SWGObject { // Extends INTO or TANO?
start = Packet.getInt(data);
end = Packet.getInt(data);
}
public int decrement() {
return --end;
}
}
private static class GroupMember implements Serializable, Encodable {