mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2024-12-30 23:17:53 +02:00
fix weird crash-to-desktop bug
This commit is contained in:
parent
fba31809c2
commit
307bbe5260
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user