mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
falling.lua - Fix Meshnodes Being Too Big (#11307)
This commit is contained in:
parent
c47313db65
commit
fbcf0fab8e
@ -111,15 +111,14 @@ core.register_entity(":__builtin:falling_node", {
|
|||||||
itemstring = core.itemstring_with_palette(itemstring, node.param2)
|
itemstring = core.itemstring_with_palette(itemstring, node.param2)
|
||||||
end
|
end
|
||||||
-- FIXME: solution needed for paramtype2 == "leveled"
|
-- FIXME: solution needed for paramtype2 == "leveled"
|
||||||
local vsize
|
local s = (def.visual_scale or 1) * SCALE
|
||||||
if def.visual_scale then
|
if def.drawtype == "mesh" then
|
||||||
local s = def.visual_scale * SCALE
|
s = s * 0.5
|
||||||
vsize = vector.new(s, s, s)
|
|
||||||
end
|
end
|
||||||
self.object:set_properties({
|
self.object:set_properties({
|
||||||
is_visible = true,
|
is_visible = true,
|
||||||
wield_item = itemstring,
|
wield_item = itemstring,
|
||||||
visual_size = vsize,
|
visual_size = vector.new(s, s, s),
|
||||||
glow = def.light_source,
|
glow = def.light_source,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user