mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-04-03 04:40:33 -07:00
- Fixed double power production
- Buffered consumers no longer request power when full
This commit is contained in:
parent
b4aba3d263
commit
982c9bf964
4 changed files with 23 additions and 16 deletions
|
|
@ -42,8 +42,9 @@ public class PowerTestFixture{
|
|||
}
|
||||
|
||||
protected static PowerGenerator createFakeProducerBlock(float producedPower){
|
||||
// Multiply produced power by 2 since production efficiency is defined to be 0.5 = 100%
|
||||
return new PowerGenerator("fakegen"){{
|
||||
powerProduction = producedPower;
|
||||
powerProduction = producedPower * 2.0f;
|
||||
}};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue