/** updates an already existing object */ public void updateObject(int par1, Object par2Obj) { WatchableObject var3 = (WatchableObject) this.watchedObjects.get(Integer.valueOf(par1)); if (!par2Obj.equals(var3.getObject())) { var3.setObject(par2Obj); var3.setWatching(true); this.objectChanged = true; } }
/** updates an already existing object */ public void updateObject(int par1, Object par2Obj) { WatchableObject watchableobject = (WatchableObject) watchedObjects.get(Integer.valueOf(par1)); if (!par2Obj.equals(watchableobject.getObject())) { watchableobject.setObject(par2Obj); watchableobject.setWatching(true); objectChanged = true; } }