Prevent multiple chestboat drivers (#3992)

Fixes #3872

Reviewed-on: MineClone2/MineClone2#3992
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Eliy21 <eliy21@noreply.git.minetest.land>
Co-committed-by: Eliy21 <eliy21@noreply.git.minetest.land>
This commit is contained in:
Eliy21 2023-11-03 22:09:49 +00:00 committed by the-real-herowl
parent a425d359f5
commit 69dc013799
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ local boat = {
minetest.register_on_respawnplayer(detach_object) minetest.register_on_respawnplayer(detach_object)
function boat.on_rightclick(self, clicker) function boat.on_rightclick(self, clicker)
if self._passenger or not clicker or clicker:get_attach() then if self._passenger or not clicker or clicker:get_attach() or (self.name == "mcl_boats:chest_boat" and self._driver) then
return return
end end
attach_object(self, clicker) attach_object(self, clicker)