#55 Fix boat visual size again

This commit is contained in:
kay27 2022-01-02 03:11:10 +04:00
parent 7dfe9a3356
commit 7ecf316c48
1 changed files with 5 additions and 1 deletions

View File

@ -46,7 +46,11 @@ local function get_visual_size(obj)
end end
local luaentity = obj:get_luaentity() local luaentity = obj:get_luaentity()
if luaentity then if luaentity then
if luaentity._old_visual_size then
return luaentity._old_visual_size return luaentity._old_visual_size
else
return boat_visual_size
end
end end
return obj:get_properties().visual_size return obj:get_properties().visual_size
end end