Skip to content

Commit c9c114d

Browse files
authored
Merge pull request #6 from Navatusein/dev
Fix amount of plasma with dust
2 parents 6f642b8 + 6e5868d commit c9c114d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/heliofusion-exoticizer-controller.lua

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,10 +412,16 @@ function heliofusionExoticizerController:new(
412412
local count = 0
413413

414414
for _, value in pairs(items) do
415-
local label = value.label:match("Pile of%s(.+)%sDust") or value.label:match("(%w+) Dust")
415+
local label = value.label:match("Pile of%s(.+)%sDust")
416+
local coefficient = 1
416417

417418
if label == nil then
418-
outputs[value.label] = {label = value.label, count = value.size, isLiquid = false}
419+
label = value.label:match("(.+) Dust")
420+
coefficient = 9
421+
end
422+
423+
if label == nil then
424+
outputs[value.label] = {label = value.label, count = value.size * coefficient, isLiquid = false}
419425
else
420426
outputs[label] = {label = label, count = value.size, isLiquid = false}
421427
end

version.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
local versions = {
2-
programVersion = "1.0.3",
2+
programVersion = "1.0.4",
33
configVersion = 1
44
}
55

0 commit comments

Comments
 (0)