Fix error printed when respawning

This commit is contained in:
Sollace 2024-05-28 14:32:31 +01:00
parent 98714556a0
commit 9efe49afbd
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -59,6 +59,7 @@ public class DataTracker {
synchronized void copyTo(DataTracker destination) {
for (int i = 0; i < codecs.size(); i++) {
((Pair<Object>)destination.codecs.get(i)).value = codecs.get(i).value;
if (i < persistentObjects.size() && i < destination.persistentObjects.size()) {
TrackableObject<?> a = persistentObjects.get(i);
TrackableObject<?> b = destination.persistentObjects.get(i);
if (a != null && b != null) {
@ -66,6 +67,7 @@ public class DataTracker {
}
}
}
}
synchronized Optional<MsgTrackedValues.TrackerEntries> getInitialPairs() {
initial = false;