Merge pull request 'ENTITIES/mcl_boats: Fix server crash when boat passenger sneaks' (#91) from fix-boat-passenger-sneaking-crash into master

Reviewed-on: https://git.minetest.land/Mineclonia/Mineclonia/pulls/91
Reviewed-by: cora <cora@noreply.git.minetest.land>
This commit is contained in:
erlehmann 2021-06-18 22:01:35 +00:00
commit 86c1f37296

View file

@ -243,7 +243,7 @@ function boat.on_step(self, dtime, moveresult)
else
local ctrl = self._passenger:get_player_control()
if ctrl and ctrl.sneak then
detach_player(self._passenger, true)
detach_object(self._passenger, true)
self._passenger = nil
end
end