Autobuild Fork


Autobuild allows your character to automatically build, deconstruct, and upgrade nearby ghosts. A more efficient alternative to mods like Bluebuild.

Content
2 months ago
2.1
190

g Minor bug in control.lua

8 days ago
(updated 8 days ago)

Line 390 of control.lua is using the wrong field when calling surface.create_entity.

It needs to get the item.place_result which may not be the same as it's name. This is the fix that worked for me:

@390:
local proto_name = item_stack.item and item_stack.item.place_result or prototypes.item[ item_stack.name ].place_result

local new_entity = entity.surface.create_entity{
name = proto_name,
...

New response