mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
Fixed size issue with SWGList resetAll
This commit is contained in:
@@ -317,7 +317,7 @@ public class SWGList<E> implements List<E>, Serializable {
|
||||
|
||||
public boolean set(List<E> list) {
|
||||
synchronized(objectMutex) {
|
||||
byte[] newListData = { 0x03 };
|
||||
byte[] newListData = { };
|
||||
|
||||
if (!list.isEmpty()) {
|
||||
for (E element : list) {
|
||||
@@ -331,9 +331,15 @@ public class SWGList<E> implements List<E>, Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
IoBuffer buffer = Delta.createBuffer(3 + newListData.length);
|
||||
buffer.put((byte) 3);
|
||||
buffer.put((short) list.size());
|
||||
buffer.put(newListData);
|
||||
newListData = buffer.array();
|
||||
|
||||
this.list = list;
|
||||
|
||||
updateCounter++;
|
||||
updateCounter += list.size();
|
||||
queue(newListData);
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user