Skip to content

Commit

Permalink
Remove fluidTransferRate Limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlamonster committed Feb 23, 2025
1 parent 72f4bf9 commit a911976
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1410,11 +1410,6 @@ opencomputers {
# Radius the MFU is able to operate in
mfuRange: 16

# Transposer fluid transfer rate in millibuckets per second
# It may transfer unlimited amount per operation, but will then
# wait ((Amount in buckets)/16) seconds
transposerFluidTransferRate=16000

# Delay between disk activity sounds, specified in milliseconds.
# If set to -1, no disk activity update packets are sent.
diskActivitySoundDelay: 500
Expand Down
1 change: 0 additions & 1 deletion src/main/scala/li/cil/oc/Settings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class Settings(val config: Config) {
(-1.0, -1.0)
}
val enableNanomachinePfx = config.getBoolean("client.enableNanomachinePfx")
val transposerFluidTransferRate = config.getInt("misc.transposerFluidTransferRate")

// ----------------------------------------------------------------------- //
// computer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ trait InventoryTransfer extends traits.WorldAware with traits.SideRestricted {
result(Unit, reason)
case _ =>
val moved = FluidUtils.transferBetweenFluidHandlersAt(sourcePos, sourceSide.getOpposite, sinkPos, sinkSide.getOpposite, count, sourceTank)
if (moved > 0) context.pause(moved / Settings.get.transposerFluidTransferRate) // Allow up to 16 buckets per second.
result(moved > 0, moved)
}
}
Expand Down

0 comments on commit a911976

Please sign in to comment.