mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-26 23:19:02 +01:00
Use a variable to hold getProvider result
This commit is contained in:
parent
dd7f07c7eb
commit
ebe164a812
1 changed files with 3 additions and 2 deletions
|
@ -129,8 +129,9 @@ public class ItemDescription {
|
||||||
.addTo(list);
|
.addTo(list);
|
||||||
|
|
||||||
double capacity = BlockStressValues.getCapacity(block);
|
double capacity = BlockStressValues.getCapacity(block);
|
||||||
Couple<Integer> generatedRPM = BlockStressValues.getProvider(block) != null ?
|
BlockStressValues.IStressValueProvider stressProvider = BlockStressValues.getProvider(block);
|
||||||
BlockStressValues.getProvider(block).getGeneratedRPM(block)
|
Couple<Integer> generatedRPM = stressProvider != null ?
|
||||||
|
stressProvider.getGeneratedRPM(block)
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
StressImpact impactId = capacity >= config.highCapacity.get() ? StressImpact.HIGH
|
StressImpact impactId = capacity >= config.highCapacity.get() ? StressImpact.HIGH
|
||||||
|
|
Loading…
Reference in a new issue