We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1be71a6 commit ad22772Copy full SHA for ad22772
modules/landfill.lua
@@ -37,8 +37,14 @@ function Landfill.compute_prototype_overrides()
37
38
log("Computing collision box overrides...")
39
40
+ local surface = game.surfaces["_BPEX_Temp_Surface"]
41
+ if surface then
42
+ log("Old temporary surface existed for some reason, destroying it.")
43
+ game.destroy_surface(surface)
44
+ end
45
+
46
-- Temporary surface.
- local surface = game.create_surface("_BPEX_Temp_Surface")
47
+ surface = game.create_surface("_BPEX_Temp_Surface")
48
local x, y
49
50
for name, proto in pairs(game.entity_prototypes) do
0 commit comments