plethora import/export support

This commit is contained in:
kepler155c
2018-03-29 21:50:27 -04:00
parent 0441662514
commit dc67a4e9ac
4 changed files with 17 additions and 27 deletions

View File

@@ -377,7 +377,7 @@ function listingPage:eventHandler(event)
if item and item.is_craftable then
local qty = math.max(0, s.need - item.qty)
if item then
if item and Builder.itemAdapter.craftItems then
Builder.itemAdapter:craftItems({{ name = s.id, damage = s.dmg, nbtHash = s.nbt_hash, count = qty }})
local name = s.display_name or s.id
self.statusBar:timedStatus('Requested ' .. qty .. ' ' .. name, 3)