summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjingkaimori <wuyiheng6@163.com>2021-12-03 17:02:36 +0800
committerjingkaimori <wuyiheng6@163.com>2021-12-03 17:02:36 +0800
commita980cb9cfb126d5aa4eaeb527e957e094682a4b0 (patch)
tree4b1f6f09609db2c04e30f3249173eb1882a7e2a7
parent6539850c0562eab3ecc8ab7a4079c9c22f58122b (diff)
downloadsmartshop-a980cb9cfb126d5aa4eaeb527e957e094682a4b0.tar.gz
smartshop-a980cb9cfb126d5aa4eaeb527e957e094682a4b0.tar.bz2
smartshop-a980cb9cfb126d5aa4eaeb527e957e094682a4b0.zip
[chore] clean up sendall function
-rw-r--r--init.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 28b2c94..289f79d 100644
--- a/init.lua
+++ b/init.lua
@@ -437,7 +437,6 @@ minetest.register_node("smartshop:shop", {
if sellitem == stack:get_name() then
return inv:room_for_item("main", stack)
end
--- minetest.chat_send_all(sellitem)
end
--
return false
@@ -471,7 +470,6 @@ minetest.register_node("smartshop:shop", {
for index, stack in pairs(mainlist) do
sendmessage.inventory[index] = stack:to_table()
end
- minetest.chat_send_all( minetest.pos_to_string(position_of_message))
digiline:receptor_send(position_of_message, digiline.rules.default, setchan, sendmessage)
elseif message.type == 'set' and message.offer then
for i = 1, 4, 1 do
@@ -530,7 +528,6 @@ allow_metadata_inventory_put = function(pos, listname, index, stack, player)
local meta = minetest.get_meta(pos)
if meta:get_int("ghost") == 1 and (string.find(listname, "pay") or string.find(listname, "give")) then
local inv = minetest.get_inventory({type="node", pos=pos})
--- minetest.chat_send_all( inv:get_stack(listname, index):get_name()..stack:get_name())
if inv:get_stack(listname, index):get_name() == stack:get_name() then
inv:add_item(listname, stack)
else