+---------------------------------------------------------------------------------------------------
+Version: 2.0.2
+Date: 2024-10-27
+
+ Changed:
+ - Correctly skip spamming non-nauvis. This time for real... hopefully.
+
---------------------------------------------------------------------------------------------------
Version: 2.0.1
Date: 2024-10-27
-- Iterate over every tile in the new chunk and spam with random resources, if empty and possible.
script.on_event(defines.events.on_chunk_generated, function (event)
- -- this mod is intended as an early game challenge. Therefore do nothing on non-nauvis.
- if not event.surface.planet then return end
- if not event.surface.planet.name ~= "nauvis" then return end
+ -- this mod is intended as an early game challenge. Therefore do nothing on any non-initial surface.
+ if not (event.surface.index == 1) then return end
-- prevent one big continuous patch
if (event.area.left_top.x/32)%10 == 5 or (event.area.left_top.y/32)%10 == 5 then
{
"name": "some-resourcespam",
- "version": "2.0.1",
+ "version": "2.0.2",
"title": "Some resource spam",
"author": "someone1337",
"homepage": "https://git.somenet.org/factorio/some-resourcespam.git",