diff options
author | jingkaimori <wuyiheng6@163.com> | 2021-12-03 17:02:36 +0800 |
---|---|---|
committer | jingkaimori <wuyiheng6@163.com> | 2021-12-03 17:02:36 +0800 |
commit | a980cb9cfb126d5aa4eaeb527e957e094682a4b0 (patch) | |
tree | 4b1f6f09609db2c04e30f3249173eb1882a7e2a7 | |
parent | 6539850c0562eab3ecc8ab7a4079c9c22f58122b (diff) | |
download | smartshop-a980cb9cfb126d5aa4eaeb527e957e094682a4b0.tar.gz smartshop-a980cb9cfb126d5aa4eaeb527e957e094682a4b0.tar.bz2 smartshop-a980cb9cfb126d5aa4eaeb527e957e094682a4b0.zip |
[chore] clean up sendall function
-rw-r--r-- | init.lua | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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 |