Oops. Missed a loop with direct emission to BC.
This commit is contained in:
parent
87a692a325
commit
3462126f3b
1 changed files with 4 additions and 6 deletions
|
@ -237,17 +237,15 @@ public final class CableUtils
|
|||
{
|
||||
double sent = 0;
|
||||
boolean tryAgain = false;
|
||||
int i = 0;
|
||||
|
||||
do {
|
||||
tryAgain = false;
|
||||
|
||||
double prev = sent;
|
||||
sent += emit_do(emitter, outputtingSides, energyToSend-sent, tryAgain);
|
||||
|
||||
if(energyToSend-sent > 0 && sent-prev > 0)
|
||||
{
|
||||
tryAgain = true;
|
||||
}
|
||||
tryAgain = energyToSend-sent > 0 && sent-prev > 0 && i < 100;
|
||||
|
||||
i++;
|
||||
} while(tryAgain);
|
||||
|
||||
emitter.setEnergy(emitter.getEnergy() - sent);
|
||||
|
|
Loading…
Reference in a new issue