1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00

Fixed lua checks

This commit is contained in:
Jayefuu 2021-02-09 18:10:09 +00:00
parent bb2da07962
commit 5254a2ccf7

View File

@ -183,9 +183,7 @@ local function robot_built_entity(event)
change_for_global(built_by_robots_name, 1)
local robot = event.robot
local entity = event.created_entity
local player = entity.last_user
-- When item gets built, add to the total entities built for the player whose robot built the entity NOT for the player who placed the ghost
local robot_owner = robot.logistic_network.cells[1].owner
if robot_owner.player then -- nil if the robot owner is a roboport