Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Takakura-Anri committed Mar 21, 2020
1 parent f0e582c commit daf14c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ class TileEntityMill : TileEntityRecipeMachine<MillRecipe>(MILL_RECIPES, 0..0, 1
}

override fun canProgress(): Boolean {
return heatHandler.temperature > FcConfig.machineConfig.millHeat
return heatHandler.temperature > ITemperature.ZERO_CELCIUS + FcConfig.machineConfig.millHeat
}

override fun canFinish(): Boolean = progress >= ITemperature.ZERO_CELCIUS + FcConfig.machineConfig.millProgress
override fun canFinish(): Boolean = progress >= FcConfig.machineConfig.millProgress

override fun readFromNBT(nbt: NBTTagCompound) {
super.readFromNBT(nbt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class TileEntityPot : TileEntityHeatRecipeMachine<PotRecipe>(POT_RECIPES, 0..11,
heatHandler.update(0.0)
}

override fun canProgress(): Boolean = heatHandler.temperature > ITemperature.ZERO_CELCIUS + 80
override fun canProgress(): Boolean = heatHandler.temperature > ITemperature.ZERO_CELCIUS + FcConfig.machineConfig.potHeat

override fun canFinish(): Boolean = progress > recipe?.minTime ?: Int.MAX_VALUE && progress < recipe?.maxTime ?: -1 && !waitingExtract

Expand Down

0 comments on commit daf14c6

Please sign in to comment.