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)
|
||||
if #this_inv_table > 0 then
|
||||
minetest.chat_send_player(username, "get_inventory():")
|
||||
send_messages(username, this_inv_table)
|
||||
send_messages(username, this_inv_table, " ")
|
||||
end
|
||||
-- else
|
||||
-- minetest.chat_send_player(username, "\tnil")
|
||||
@ -234,6 +234,16 @@ minetest.register_craftitem("metatools:stick",{
|
||||
-- else
|
||||
-- minetest.chat_send_player(username, "get_inventory:nil")
|
||||
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 litnode = nil
|
||||
local litpos = nil
|
||||
|
Loading…
Reference in New Issue
Block a user