mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27:59 +01:00
Fix error printed when respawning
This commit is contained in:
parent
98714556a0
commit
9efe49afbd
1 changed files with 6 additions and 4 deletions
|
@ -59,6 +59,7 @@ public class DataTracker {
|
||||||
synchronized void copyTo(DataTracker destination) {
|
synchronized void copyTo(DataTracker destination) {
|
||||||
for (int i = 0; i < codecs.size(); i++) {
|
for (int i = 0; i < codecs.size(); i++) {
|
||||||
((Pair<Object>)destination.codecs.get(i)).value = codecs.get(i).value;
|
((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<?> a = persistentObjects.get(i);
|
||||||
TrackableObject<?> b = destination.persistentObjects.get(i);
|
TrackableObject<?> b = destination.persistentObjects.get(i);
|
||||||
if (a != null && b != null) {
|
if (a != null && b != null) {
|
||||||
|
@ -66,6 +67,7 @@ public class DataTracker {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
synchronized Optional<MsgTrackedValues.TrackerEntries> getInitialPairs() {
|
synchronized Optional<MsgTrackedValues.TrackerEntries> getInitialPairs() {
|
||||||
initial = false;
|
initial = false;
|
||||||
|
|
Loading…
Reference in a new issue