]> git.somenet.org - factorio/RealisticDecorationCleanup.git/blob - control.lua
Update to factorio 0.17.x (Tested with 0.17.2)
[factorio/RealisticDecorationCleanup.git] / control.lua
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(event.created_entity.bounding_box)
5         end
6 end)
7
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(event.created_entity.bounding_box)
11         end
12 end)