Skip to content
Snippets Groups Projects
Commit 117f2088 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

Revert "Use wielditem drawtype for all nodes in item_entity"

This reverts commit ffad18e4.
parent 5f798d94
No related branches found
No related tags found
No related merge requests found
......@@ -41,17 +41,17 @@ minetest.register_entity("__builtin:item", {
prop = {
is_visible = true,
visual = "sprite",
textures = {"unknown_item.png"},
visual_size = {x=0.50, y=0.50}
textures = {"unknown_item.png"}
}
if item_type == "node" then
if item_texture and item_texture ~= "" then
prop.visual = "sprite"
prop.textures = {item_texture}
prop.visual_size = {x=0.50, y=0.50}
else
prop.visual = "wielditem"
prop.textures = {itemname}
prop.visual_size = {x=0.20, y=0.20}
prop.automatic_rotate = math.pi * 0.25
elseif item_texture and item_texture ~= "" then
prop.visual = "sprite"
prop.textures = {item_texture}
end
self.object:set_properties(prop)
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