mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +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)
|
||||
end
|
||||
|
||||
if not event.from_sync then
|
||||
write_json('log/store.log',event)
|
||||
if not event.from_sync and Store.synced[event.location] then
|
||||
write_json('log/store.log',{
|
||||
tick=event.tick,
|
||||
location=event.location,
|
||||
child=event.child,
|
||||
value=event.value,
|
||||
})
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user