From a421c78a0cb22df3351c3a36c6bd3fa4d1f27e9f Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Thu, 11 Jul 2019 10:33:54 -0600 Subject: [PATCH] swshop accepts uppercase names for items #11 --- milo/plugins/transferView.lua | 2 +- swshop/shopTab.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/milo/plugins/transferView.lua b/milo/plugins/transferView.lua index 30fc852..3fa70ff 100644 --- a/milo/plugins/transferView.lua +++ b/milo/plugins/transferView.lua @@ -89,7 +89,7 @@ local function transfer(node) local target = context.storage.nodes[node.target] if not target or not target.adapter or not target.adapter.online then - error(string.format('TRANSFER: target %s is not online', node.target)) + error(string.format('TRANSFER: target %s is not online', node.name)) end if target.mtype == 'storage' then diff --git a/swshop/shopTab.lua b/swshop/shopTab.lua index f79b28d..169d6ee 100644 --- a/swshop/shopTab.lua +++ b/swshop/shopTab.lua @@ -15,6 +15,7 @@ local shopTab = UI.Tab { [1] = UI.TextEntry { formLabel = 'Name', formKey = 'name', help = 'Unique name used when paying for an item', + transform = 'lowercase', required = true, width = 12, limit = 64,