summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorjingkaimori <jingkaimori@gmail.com>2021-11-10 20:40:33 +0800
committerjingkaimori <jingkaimori@gmail.com>2021-11-10 20:40:33 +0800
commit6539850c0562eab3ecc8ab7a4079c9c22f58122b (patch)
treeae405f9a94eddaab5a8f3321bb7550c7a54ec01e /init.lua
parent573c992ba46269c7c04ca0b0e7d094f9e8804096 (diff)
downloadsmartshop-6539850c0562eab3ecc8ab7a4079c9c22f58122b.tar.gz
smartshop-6539850c0562eab3ecc8ab7a4079c9c22f58122b.tar.bz2
smartshop-6539850c0562eab3ecc8ab7a4079c9c22f58122b.zip
document and clean-up
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua9
1 files changed, 0 insertions, 9 deletions
diff --git a/init.lua b/init.lua
index fef198c..28b2c94 100644
--- a/init.lua
+++ b/init.lua
@@ -479,7 +479,6 @@ minetest.register_node("smartshop:shop", {
if type(current_offer)=='table' and current_offer.give and current_offer.pay then
local give_item = ItemStack(current_offer.give);
local pay_item = ItemStack(current_offer.pay);
- print(give_item:get_name())
if minetest.registered_items[give_item:get_name()] and minetest.registered_items[pay_item:get_name()] then
if type(current_offer.give_count) == "number" then
give_item:set_count(math.floor(current_offer.give_count))
@@ -494,14 +493,6 @@ minetest.register_node("smartshop:shop", {
end
end
end
-
- -- if event.type == 'digiline' then
- -- print(event.channel)
- -- print(event.msg)
- -- else
- -- digiline.send('b',{type='ask'});
-
- -- end
end
}
},