mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 21:01:39 +09:00
Fixed store log
This commit is contained in:
@@ -240,8 +240,13 @@ Event.add(Store.on_value_update,function(event)
|
|||||||
Store.callbacks[event.location](event.value,event.child)
|
Store.callbacks[event.location](event.value,event.child)
|
||||||
end
|
end
|
||||||
|
|
||||||
if not event.from_sync then
|
if not event.from_sync and Store.synced[event.location] then
|
||||||
write_json('log/store.log',event)
|
write_json('log/store.log',{
|
||||||
|
tick=event.tick,
|
||||||
|
location=event.location,
|
||||||
|
child=event.child,
|
||||||
|
value=event.value,
|
||||||
|
})
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user