forked from VoxeLibre/VoxeLibre
force wield_scale to number value
This commit is contained in:
parent
3d7155c1b9
commit
7e2abc5b01
|
@ -675,7 +675,7 @@ minetest.register_entity(":__builtin:item", {
|
|||
glow = def.light_source
|
||||
end
|
||||
local s = 0.2 + 0.1 * (count / max_count)
|
||||
local wield_scale = (def and def.wield_scale and def.wield_scale.x) or 1
|
||||
local wield_scale = tonumber((def and def.wield_scale and def.wield_scale.x)) or 1
|
||||
local c = s
|
||||
s = s / wield_scale
|
||||
local prop = {
|
||||
|
|
Loading…
Reference in New Issue