toBeInjected = transferer.requestFortron(receiver.provideFortron(toBeInjected, true), true);
// Draw Beam Effect
if (world.isRemote && toBeInjected > 0 && !isCamo)
{
ModularForceFieldSystem.proxy.renderBeam(world, Vector3.translate(new Vector3(tileEntity), 0.5), Vector3.translate(new Vector3((TileEntity) receiver), 0.5), 0.6f, 0.6f, 1, 20);
}
}
else
{
// Take energy from receiver.
joules = Math.min(Math.abs(joules), limit);
int toBeEjected = transferer.provideFortron(receiver.requestFortron(joules, false), false);
toBeEjected = receiver.requestFortron(transferer.provideFortron(toBeEjected, true), true);
// Draw Beam Effect
if (world.isRemote && toBeEjected > 0 && !isCamo)
{
ModularForceFieldSystem.proxy.renderBeam(world, Vector3.translate(new Vector3((TileEntity) receiver), 0.5), Vector3.translate(new Vector3(tileEntity), 0.5), 0.6f, 0.6f, 1, 20);
}
}
}