mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Revert "Use wielditem drawtype for all nodes in item_entity"
This reverts commit ffad18e42442fed10c312adc989fc62b74e05896.
This commit is contained in:
parent
5f798d944e
commit
117f208826
@ -41,17 +41,17 @@ minetest.register_entity("__builtin:item", {
|
|||||||
prop = {
|
prop = {
|
||||||
is_visible = true,
|
is_visible = true,
|
||||||
visual = "sprite",
|
visual = "sprite",
|
||||||
textures = {"unknown_item.png"},
|
textures = {"unknown_item.png"}
|
||||||
visual_size = {x=0.50, y=0.50}
|
|
||||||
}
|
}
|
||||||
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.visual = "wielditem"
|
||||||
prop.textures = {itemname}
|
prop.textures = {itemname}
|
||||||
prop.visual_size = {x=0.20, y=0.20}
|
prop.visual_size = {x=0.20, y=0.20}
|
||||||
prop.automatic_rotate = math.pi * 0.25
|
prop.automatic_rotate = math.pi * 0.25
|
||||||
elseif item_texture and item_texture ~= "" then
|
|
||||||
prop.visual = "sprite"
|
|
||||||
prop.textures = {item_texture}
|
|
||||||
end
|
end
|
||||||
self.object:set_properties(prop)
|
self.object:set_properties(prop)
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user