mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-11-19 21:53:12 +09:00
.
This commit is contained in:
1 parent
95edf8face
commit
f8394e3008
8 files changed
+5
-16
No files matched your search
@@ -2,15 +2,15 @@
|
||||
-- local main = require 'main'
|
||||
|
||||
do
|
||||
local vp = settings.startup['PHI-VP'].value and settings.startup['PHI-VP-MAIN'].value
|
||||
local sa = settings.startup['PHI-SA'].value and settings.startup['PHI-SA-GENERIC'].value
|
||||
local p = settings.startup['PHI-VP'].value or sa
|
||||
|
||||
for k, v in pairs(data.raw.recipe) do
|
||||
if vp and v.category == 'recycling' then
|
||||
if settings.startup['PHI-VP'].value and v.category == 'recycling' then
|
||||
data.raw.recipe[k] = nil
|
||||
end
|
||||
|
||||
if (vp or sa) and v.maximum_productivity then
|
||||
if p and v.maximum_productivity then
|
||||
v.maximum_productivity = 999
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user