mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-25 14:01:03 -08:00
Fixed #10824
This commit is contained in:
parent
2436e54149
commit
0de78ffa0d
1 changed files with 3 additions and 5 deletions
|
|
@ -89,14 +89,12 @@ public class ConsumeGenerator extends PowerGenerator{
|
|||
|
||||
@Override
|
||||
public void updateEfficiencyMultiplier(){
|
||||
efficiencyMultiplier = 1f;
|
||||
if(filterItem != null){
|
||||
float m = filterItem.efficiencyMultiplier(this);
|
||||
if(m > 0) efficiencyMultiplier *= m;
|
||||
}
|
||||
if(filterLiquid != null){
|
||||
if(m > 0) efficiencyMultiplier = m;
|
||||
}else if(filterLiquid != null){
|
||||
float m = filterLiquid.efficiencyMultiplier(this);
|
||||
if(m > 0) efficiencyMultiplier *= m;
|
||||
if(m > 0) efficiencyMultiplier = m;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue