Skip to content

Commit 07e2c48

Browse files
authored
Merge pull request #7 from Navatusein/dev
Dev
2 parents 6adc17a + 97ceeae commit 07e2c48

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ the Space Time residue into the black hole subsystem.
108108
You should also put “Database Upgrade (Tier 3)” in the adapter.
109109

110110
> [!CAUTION]
111-
> To work properly, you need to put any liquid сraft template (which is pink) in the interface.
111+
> To work properly, you need to put any liquid сraft template (which is pink) in the interface.
112+
> The program will re-encode it itself.
112113
113114
![Input subnet setup](/docs/input-subnet.png)
114115

src/black-hole-controller.lua

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,19 +179,15 @@ function blackHoleController:new(
179179

180180
self.stateMachine.states.waitSpaceTime = self.stateMachine:createState("Wait Space Time")
181181
self.stateMachine.states.waitSpaceTime.update = function ()
182-
if self.controllerProxy.getWorkMaxProgress() == 0 then
183-
if self:hasItems() == false then
182+
if self.controllerProxy.getWorkMaxProgress() == 0 and self:hasItems() == false then
184183
self.stateMachine:setState(self.stateMachine.states.collapseBlackHole)
185-
end
186184
elseif self.stateMachine.data.currentCycleTimer >= self.maxCycleTimer or self.stateMachine.data.currentCycle == self.maxCyclesCount then
187185
if self.stateMachine.data.currentCycle < self.maxCyclesCount then
188186
self.stateMachine:setState(self.stateMachine.states.addSpaceTime)
187+
elseif self.saveRecipeMode == true and self:getCraftTimeRemained() > self:getStabilityTimeRemained() then
188+
self.stateMachine:setState(self.stateMachine.states.saveRecipe)
189189
else
190-
if self.saveRecipeMode == true and self:getCraftTimeRemained() > self:getStabilityTimeRemained() then
191-
self.stateMachine:setState(self.stateMachine.states.saveRecipe)
192-
else
193-
self.stateMachine:setState(self.stateMachine.states.collapseBlackHole)
194-
end
190+
self.stateMachine:setState(self.stateMachine.states.collapseBlackHole)
195191
end
196192
end
197193
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)