1 --[[get dir of decorations under entities]]
2 script.on_event(defines.events.on_built_entity, function(event)
3 if event.created_entity.type ~= "entity-ghost" and event.created_entity.type ~= "tile-ghost" then
4 game.surfaces[1].destroy_decoratives{area=event.created_entity.selection_box}
8 script.on_event(defines.events.on_robot_built_entity, function(event)
9 if event.created_entity.type ~= "entity-ghost" and event.created_entity.type ~= "tile-ghost" then
10 game.surfaces[1].destroy_decoratives{area=event.created_entity.selection_box}