brewing station auto learn

This commit is contained in:
kepler155c
2018-10-28 03:24:32 -04:00
parent 763f6bb27a
commit b96c064431
5 changed files with 64 additions and 22 deletions

View File

@@ -218,7 +218,7 @@ function NetworkedAdapter:insert(slot, qty, toSlot, item, source)
if amount > 0 then
debug('INS: %s(%d): %s[%d] -> %s',
item.name, amount,
source, slot, adapter.name)
source or self.localName, slot, adapter.name)
self.dirty = true
adapter.dirty = true
local entry = self.activity[key] or 0