Fixed store log

This commit is contained in:
Cooldude2606
2019-06-07 20:21:31 +01:00
parent 68bcd15521
commit 408720059b

View File

@@ -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)