diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-11-27 17:32:58 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-11-27 17:32:58 +0200 |
commit | 117f2088263833a40b672b702fb215e52b88be5c (patch) | |
tree | f430b6899abbf56ae55f41155797f04bb1fbc98d | |
parent | 5f798d944ee03beca205b107dda58bdc72dd2bf8 (diff) | |
download | minetest-117f2088263833a40b672b702fb215e52b88be5c.tar.gz minetest-117f2088263833a40b672b702fb215e52b88be5c.tar.bz2 minetest-117f2088263833a40b672b702fb215e52b88be5c.zip |
Revert "Use wielditem drawtype for all nodes in item_entity"
This reverts commit ffad18e42442fed10c312adc989fc62b74e05896.
-rw-r--r-- | builtin/item_entity.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/builtin/item_entity.lua b/builtin/item_entity.lua index 8657e64af..2b12764f1 100644 --- a/builtin/item_entity.lua +++ b/builtin/item_entity.lua @@ -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, |