1
0
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:
Gerkiz 2020-12-05 18:11:23 +01:00
parent 07997af284
commit 6370ac3720

View File

@ -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