mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +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) {
|
||||
for (int i = 0; i < codecs.size(); i++) {
|
||||
((Pair<Object>)destination.codecs.get(i)).value = codecs.get(i).value;
|
||||
TrackableObject<?> a = persistentObjects.get(i);
|
||||
TrackableObject<?> b = destination.persistentObjects.get(i);
|
||||
if (a != null && b != null) {
|
||||
((TrackableObject)a).copyTo(b);
|
||||
if (i < persistentObjects.size() && i < destination.persistentObjects.size()) {
|
||||
TrackableObject<?> a = persistentObjects.get(i);
|
||||
TrackableObject<?> b = destination.persistentObjects.get(i);
|
||||
if (a != null && b != null) {
|
||||
((TrackableObject)a).copyTo(b);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue