After some questioning and digging I found the following fix:
Path:Factorio/mods/Treefarm-AC 0.2.1.zip/control.lua
Code: Select all
require "defines"
game.on_event(defines.events.on_built_entity, function(event)
if event.created_entity.name == "tf-cokery-dummy" then
local force = game.players[event.player_index].force
game.get_surface("nauvis").create_entity{name = "tf-cokery", position = event.created_entity.position, force = force}
event.created_entity.destroy()
end
end)
Added: "local force = game.players[event.player_index].force"
Changed to this: "force = force"
Now the cokery is placed as my current force
Why does this matter? Because force.player is an enemy of force.blue so I can't interact with force.players entities