mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-09 07:15:11 -04:00
reverting clamp for callback cost (as it was before)
This commit is contained in:
parent
61780aa36e
commit
4857395e6a
@ -280,7 +280,7 @@ class Machine(val host: MachineHost) extends prefab.ManagedEnvironment with mach
|
||||
|
||||
override def consumeCallBudget(callCost: Double): Unit = {
|
||||
if (architecture.isInitialized && !inSynchronizedCall) {
|
||||
val clampedCost = math.max(0.0, callCost)
|
||||
val clampedCost = math.max(0.001, callCost)
|
||||
if (clampedCost > callBudget) {
|
||||
throw new LimitReachedException()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user