From 58f4aa29499d7813a5075993752fdc0106433ec4 Mon Sep 17 00:00:00 2001 From: Troels Bjerre Lund Date: Sat, 23 Mar 2019 18:32:15 +0100 Subject: [PATCH] fixed entity reference for cloned --- control.lua | 2 +- info.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/control.lua b/control.lua index a9aa30d..731450f 100644 --- a/control.lua +++ b/control.lua @@ -165,7 +165,7 @@ end --[[ A function that is called whenever an entity is built (both by player and by robots) ]]-- local function built(event) - local entity = event.created_entity + local entity = event.created_entity or event.entity local data -- If the entity that's been built is an assembly machine or a furnace... if entity.type == "assembling-machine" then diff --git a/info.json b/info.json index 96eec4a..34a55ca 100644 --- a/info.json +++ b/info.json @@ -1,7 +1,7 @@ { "name":"Bottleneck", "author":"Troels Bjerre Lund", - "version":"0.10.2", + "version":"0.10.3", "factorio_version": "0.17", "title":"Bottleneck", "homepage":"https://forums.factorio.com/viewtopic.php?f=144&t=28817",