How to monitor quantity changes?
I had originally only a handler for onUpdate. I realized that dragging an item to inventory would call on Update if it was a new item but not call update if it was simply increasing the quantity.
Code:
DB.addHandler(DB.getPath(node, ".inventorylist.*.carried"), "onUpdate",
onCarriedChanged)
What is the event for changing the entry number?
Tried a few of these:
Code:
DB.addHandler(DB.getPath(node, ".inventorylist.*.carried"), "onObserverUpdate",
onObserverUpdate)
DB.addHandler(DB.getPath(node, ".inventorylist.*.carried"), "onChildUpdate",
onChildUpdate)
DB.addHandler(DB.getPath(node, ".inventorylist.*.carried"), "onIntegrityChange",
onIntegrityChange)