dont do drunk effects when player is riding boat/cart/horse etc.

This commit is contained in:
TenPlus1 2019-02-27 15:50:54 +00:00
parent 2c70abd4e2
commit b825006c0b

View File

@ -207,7 +207,9 @@ local function stamina_globaltimer(dtime)
local name = player:get_player_name()
if stamina.players[name] and stamina.players[name].drunk then
if stamina.players[name]
and stamina.players[name].drunk
and not player:get_attach() then
local yaw = player:get_look_horizontal()