Make a new watchable object

This commit is contained in:
Andrew 2013-07-07 02:33:33 +12:00
parent f4905dcb7b
commit 58453822c5

View File

@ -46,11 +46,16 @@ public class FlagWatcher {
if (entityValues.containsKey(watch.a())) {
if (entityValues.get(watch.a()) == null)
continue;
boolean doD = watch.d();
Object value = entityValues.get(watch.a());
boolean doD = watch.d();
watch = new WatchableObject(classTypes.get(value.getClass()), watch.a(), value);
if (!doD)
watch.a(false);
} else {
boolean doD = watch.d();
watch = new WatchableObject(watch.c(), watch.a(), watch.b());
if (!doD)
watch.a(false);
}
newList.add(watch);
}