-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make fake ores optional, fix selection tool
The fake ore items are reported to interact badly with AAI Programmable Structures but only exist for a vanity reason (counting resource entities while dragging). They are now locked behind a setting, off by default. Additionally, the selection tool filter modes have moved into a sub-object and were thus not actually applying: only resources *should* be actually selected by the YARM tool.
- Loading branch information
Showing
4 changed files
with
25 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
local ore_items = {} | ||
|
||
for name, proto in pairs(data.raw.resource) do | ||
ore_items[#ore_items + 1] = { | ||
type = 'item', | ||
stack_size = 1, | ||
hidden = true, | ||
if settings.startup["YARM-make-fake-ores"].value then | ||
for name, proto in pairs(data.raw.resource) do | ||
ore_items[#ore_items + 1] = { | ||
type = 'item', | ||
stack_size = 1, | ||
hidden = true, | ||
|
||
name = 'YARM-fake-' .. proto.name, | ||
icon = proto.icon or nil, | ||
icons = proto.icons or nil, | ||
icon_size = proto.icon_size or nil, | ||
name = 'YARM-fake-' .. proto.name, | ||
icon = proto.icon or nil, | ||
icons = proto.icons or nil, | ||
icon_size = proto.icon_size or nil, | ||
|
||
place_result = proto.name, | ||
} | ||
end | ||
place_result = proto.name, | ||
} | ||
end | ||
|
||
data:extend(ore_items) | ||
data:extend(ore_items) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters