Show frame contents. Indent inventory output.
This commit is contained in:
parent
2317dca231
commit
c003d1a80a
12
init.lua
12
init.lua
@ -226,7 +226,7 @@ minetest.register_craftitem("metatools:stick",{
|
|||||||
local this_inv_table = inv_to_table(inventory, true)
|
local this_inv_table = inv_to_table(inventory, true)
|
||||||
if #this_inv_table > 0 then
|
if #this_inv_table > 0 then
|
||||||
minetest.chat_send_player(username, "get_inventory():")
|
minetest.chat_send_player(username, "get_inventory():")
|
||||||
send_messages(username, this_inv_table)
|
send_messages(username, this_inv_table, " ")
|
||||||
end
|
end
|
||||||
-- else
|
-- else
|
||||||
-- minetest.chat_send_player(username, "\tnil")
|
-- minetest.chat_send_player(username, "\tnil")
|
||||||
@ -234,6 +234,16 @@ minetest.register_craftitem("metatools:stick",{
|
|||||||
-- else
|
-- else
|
||||||
-- minetest.chat_send_player(username, "get_inventory:nil")
|
-- minetest.chat_send_player(username, "get_inventory:nil")
|
||||||
end
|
end
|
||||||
|
if node.frame_contents then
|
||||||
|
local frame_contents = node.frame_contents
|
||||||
|
if frame_contents then
|
||||||
|
minetest.chat_send_player(username, "frame_contents: "..frame_contents)
|
||||||
|
-- else
|
||||||
|
-- minetest.chat_send_player(username, "\tnil")
|
||||||
|
end
|
||||||
|
-- else
|
||||||
|
-- minetest.chat_send_player(username, "get_inventory:nil")
|
||||||
|
end
|
||||||
local airname = minetest.get_name_from_content_id(minetest.CONTENT_AIR)
|
local airname = minetest.get_name_from_content_id(minetest.CONTENT_AIR)
|
||||||
-- local litnode = nil
|
-- local litnode = nil
|
||||||
local litpos = nil
|
local litpos = nil
|
||||||
|
Loading…
Reference in New Issue
Block a user