mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 05:47: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,10 +59,12 @@ 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;
|
||||||
TrackableObject<?> a = persistentObjects.get(i);
|
if (i < persistentObjects.size() && i < destination.persistentObjects.size()) {
|
||||||
TrackableObject<?> b = destination.persistentObjects.get(i);
|
TrackableObject<?> a = persistentObjects.get(i);
|
||||||
if (a != null && b != null) {
|
TrackableObject<?> b = destination.persistentObjects.get(i);
|
||||||
((TrackableObject)a).copyTo(b);
|
if (a != null && b != null) {
|
||||||
|
((TrackableObject)a).copyTo(b);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue