mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
Merge pull request 'Fix lightning boat crash' (#2990) from fix_lightning_boat_crash into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2990 Reviewed-by: PrairieWind <prairie.astronomer1@gmail.com>
This commit is contained in:
commit
9cfbbef41d
1 changed files with 1 additions and 0 deletions
|
@ -109,6 +109,7 @@ local function attach_object(self, obj)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function detach_object(obj, change_pos)
|
local function detach_object(obj, change_pos)
|
||||||
|
if not obj or not obj:get_pos() then return end
|
||||||
obj:set_detach()
|
obj:set_detach()
|
||||||
obj:set_properties({visual_size = get_visual_size(obj)})
|
obj:set_properties({visual_size = get_visual_size(obj)})
|
||||||
if obj:is_player() then
|
if obj:is_player() then
|
||||||
|
|
Loading…
Reference in a new issue