We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0e757d commit fe62487Copy full SHA for fe62487
1 file changed
plugins/lua/logistics.lua
@@ -197,10 +197,10 @@ local function do_add_stockpile_config(features, opts)
197
for _,config in ipairs(configs) do
198
features.claim = features.claim or features.unforbid -- accept 'add unforbid' in addition to 'add claim'
199
logistics_setStockpileConfig(config.stockpile_number,
200
- features.melt or config.melt == 1,
201
- features.trade or config.trade == 1,
202
- features.dump or config.dump == 1,
203
- features.train or config.train == 1,
+ features.melt and true or config.melt == 1,
+ features.trade and true or config.trade == 1,
+ features.dump and true or config.dump == 1,
+ features.train and true or config.train == 1,
204
(features.forbid and 1) or (features.claim and 2) or config.forbid,
205
not not opts.melt_masterworks)
206
end
0 commit comments