mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-02-03 13:12:11 +02:00
fullness bug fix
This commit is contained in:
parent
07997af284
commit
6370ac3720
@ -34,7 +34,7 @@ end
|
||||
local function compute_fullness(player)
|
||||
local warn_player = is_player_warned(player)
|
||||
local free_slots = player.get_main_inventory().count_empty_stacks()
|
||||
if free_slots == 0 then
|
||||
if free_slots == 0 or free_slots == 1 then
|
||||
if player.character then
|
||||
local damage = ceil((warn_player.count / 2) * warn_player.count)
|
||||
if player.character.health >= damage then
|
||||
|
Loading…
x
Reference in New Issue
Block a user