aboutsummaryrefslogtreecommitdiff
path: root/src/onload/shop_signs.lua
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-06-11 11:05:25 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-06-11 11:05:25 +0200
commit0c78a3864f42e3a869f38c4f1b10ce61a7cc70b4 (patch)
treea39f41cf7a7104d3545a5823f7c4b0deeafe697f /src/onload/shop_signs.lua
parent891fc7ef41049e8e29b160eef93b3e9233b4a97f (diff)
downloadskycraft-0c78a3864f42e3a869f38c4f1b10ce61a7cc70b4.tar.xz
Daily Enhancements
Diffstat (limited to 'src/onload/shop_signs.lua')
-rw-r--r--src/onload/shop_signs.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/onload/shop_signs.lua b/src/onload/shop_signs.lua
index 217049e..4c6ec4b 100644
--- a/src/onload/shop_signs.lua
+++ b/src/onload/shop_signs.lua
@@ -6,13 +6,11 @@ for nodename, nodedef in pairs(minetest.registered_nodes) do
local text = minetest.get_meta(pos):get_string("text") or ""
local lines = text:split("\n")
local action, amount, price = lines[1], lines[2], lines[3]
- print(action, amount, price)
if not (action and amount and price) then return end
price = string.gsub(price, "%$", "")
price = tonumber(price)
amount = string.gsub(amount, "x", "")
amount = tonumber(amount)
- print(action, amount, price)
if not (amount and price) then return end
local func, frameoffset
if action == "Buy" then