diff --git a/maps/mountain_fortress_v3/ic/functions.lua b/maps/mountain_fortress_v3/ic/functions.lua index 296325a9..dcae2e9f 100644 --- a/maps/mountain_fortress_v3/ic/functions.lua +++ b/maps/mountain_fortress_v3/ic/functions.lua @@ -882,7 +882,7 @@ function Public.use_door_with_entity(ic, player, door) local owner = game.players[car.owner] local list = get_trusted_system(ic, owner) - if owner and owner.valid and player.connected then + if owner and owner.valid and owner.index ~= player.index and player.connected then if list.allow_anyone == 'right' then if not list.players[player.name] and not player.admin then player.driving = false diff --git a/modules/check_fullness.lua b/modules/check_fullness.lua index a90eb1f5..c6f99208 100644 --- a/modules/check_fullness.lua +++ b/modules/check_fullness.lua @@ -32,6 +32,9 @@ local function is_player_warned(player, reset) end local function compute_fullness(player) + if not player.mining_state.mining then + return false + end local warn_player = is_player_warned(player) local free_slots = player.get_main_inventory().count_empty_stacks() if free_slots == 0 or free_slots == 1 then