Skip to content
Snippets Groups Projects
Commit b8aaf37f authored by Niwla23's avatar Niwla23 Committed by Jean-Patrick Guerrero
Browse files

Display itemstring in itemframes (#116)

Itemframe patch
parent 39e99914
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,11 @@ function itemframe.rightclick(pos, node, clicker, itemstack)
local itemstring = itemstack:take_item():to_string()
meta:set_string("item", itemstring)
update_item(pos, node)
if itemstring == "" then
meta:set_string("infotext", "Item Frame (owned by " .. owner .. ")")
else
meta:set_string("infotext", itemstring.." (owned by " .. owner .. ")")
end
return itemstack
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment