1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-18 03:21:47 +02:00

Fixed collapse on biters error

This commit is contained in:
Lynn 2018-11-26 20:23:53 +01:00
parent d80becdc9b
commit 58be972190

View File

@ -259,8 +259,8 @@ local function on_entity_died (event)
local text = string_format('+ %d XP', exp)
Game.print_floating_text(entity.surface, entity.position, text, {r = 144, g = 202, b = 249})
ForceControl.add_experience(force, exp)
return
end
return
end
if entity.force.name ~= 'enemy' then