fixed interaction on right click

This commit is contained in:
Alexsandro Percy 2024-03-10 11:31:30 -03:00
parent c06bda3fcc
commit 2aab0b4144

View file

@ -862,7 +862,7 @@ function airutils.on_rightclick(self, clicker)
--========================= --=========================
-- attach pilot -- attach pilot
--========================= --=========================
elseif not self.driver_name and self._autoflymode == false then elseif not self.driver_name and not self._autoflymode then
if self.owner == name or minetest.check_player_privs(clicker, {protection_bypass=true}) then if self.owner == name or minetest.check_player_privs(clicker, {protection_bypass=true}) then
local itmstck=clicker:get_wielded_item() local itmstck=clicker:get_wielded_item()