From 58be972190a93d0908b62b536f8199cae2b7120a Mon Sep 17 00:00:00 2001 From: Lynn Date: Mon, 26 Nov 2018 20:23:53 +0100 Subject: [PATCH] Fixed collapse on biters error --- map_gen/Diggy/Feature/Experience.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/map_gen/Diggy/Feature/Experience.lua b/map_gen/Diggy/Feature/Experience.lua index 302b231e..12f8f56c 100644 --- a/map_gen/Diggy/Feature/Experience.lua +++ b/map_gen/Diggy/Feature/Experience.lua @@ -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