mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-28 05:21:05 +01:00
Prevent players from entering minecarts when sneaking, prevents players from causing https://git.minetest.land/MineClone2/MineClone2/issues/3188
This commit is contained in:
parent
d479bfb711
commit
fd6f4ee80e
1 changed files with 1 additions and 1 deletions
|
@ -1022,7 +1022,7 @@ register_minecart({
|
|||
local player_name = clicker:get_player_name()
|
||||
if self._driver and player_name == self._driver then
|
||||
--detach_driver(self)
|
||||
elseif not self._driver then
|
||||
elseif not self._driver and not clicker:get_player_control().sneak then
|
||||
self._driver = player_name
|
||||
self._start_pos = self.object:get_pos()
|
||||
mcl_player.player_attached[player_name] = true
|
||||
|
|
Loading…
Reference in a new issue