it seems that the LuaEntity.revive() function does not trigger the on_built_entity event when the ghost transforms into a real entity.
It creates problems with most mods that are scanning for entity creations.
The Instant Blueprint mod uses this to instant create objects from blueprints :
Code: Select all
script.on_event(defines.events.on_built_entity, function(ev)
if (ev.created_entity.name == "entity-ghost" or ev.created_entity.name == "tile-ghost") then
ev.created_entity.revive()
end
end)
Or can you trigger an on_built_entity from inside a on_built_entity ?
subject related : viewtopic.php?f=11&t=27608&p=174801&hil ... ve#p174754