mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-18 16:02:19 +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);
|
||||
|
||||
double capacity = BlockStressValues.getCapacity(block);
|
||||
Couple<Integer> generatedRPM = BlockStressValues.getProvider(block) != null ?
|
||||
BlockStressValues.getProvider(block).getGeneratedRPM(block)
|
||||
BlockStressValues.IStressValueProvider stressProvider = BlockStressValues.getProvider(block);
|
||||
Couple<Integer> generatedRPM = stressProvider != null ?
|
||||
stressProvider.getGeneratedRPM(block)
|
||||
: null;
|
||||
|
||||
StressImpact impactId = capacity >= config.highCapacity.get() ? StressImpact.HIGH
|
||||
|
|
Loading…
Reference in a new issue