Bulk Teleporters

by dorfl

Use spare gigajoules to teleport shipments of items.

Content
3 years ago
0.17 - 1.1
1.99K
Logistics

g license

5 years ago
(updated 5 years ago)

https://choosealicense.com/licenses/mit/
I see licence MIT on the site, but I do not see any license on your GitLab repository.

How to apply this license (common)
Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.

Also, are you sure you need “ipairs” instead of "pairs" in events?

5 years ago

Thanks, added.

Mind clarifying "events"? Do you mean the signals loop?

Must admit I have no idea if that's guaranteed to be an array or a map. Docs for get_merged_signals are non-specific :\

5 years ago

Unlike standard lua factorios built-in lua interpreter guarantees deterministic order of pairs(), so there's no real reason to use ipairs. If you need performance a for i=1,x loop is faster. And if you don't know if something is sparse or not you just print it with print(serpent.block(x)) and have a look at it :p.

New response