From 94a50d3ec543eb65fc495ad48c64f0824a325648 Mon Sep 17 00:00:00 2001 From: Jayefuu Date: Sat, 13 Feb 2021 18:55:57 +0000 Subject: [PATCH] Fixed coin pickup on entity death --- map_gen/maps/crash_site/events.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/map_gen/maps/crash_site/events.lua b/map_gen/maps/crash_site/events.lua index 1e0c20ad..9622aa40 100644 --- a/map_gen/maps/crash_site/events.lua +++ b/map_gen/maps/crash_site/events.lua @@ -447,6 +447,7 @@ local function do_coin_drop(entity_name, entity, cause) if player and player.valid then local coins = {name = "coin", count = count} if player.can_insert(coins) then + player.insert(coins) entity.surface.create_entity{name="flying-text", position = {position.x - 1, position.y}, text = "+" .. count .. " [img=item.coin]", color = {1, 0.8, 0, 0.5}, render_player_index = player.index} return end