~gpcf/misc-patches

[PATCH 1/1] [chore] clean up sendall function

Details
Message ID
<CAHieSD55q3ySZUBb6z3ZdgRnAFoXKTKun2N=26zaFJadaxVEpA@mail.gmail.com>
DKIM signature
pass
Download raw message
---
 init.lua | 3 ---
 1 file changed, 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
-- 
2.34.0.windows.1
Reply to thread Export thread (mbox)