mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-26 15:06:42 +01:00
Add null check on BlockStressValues.getProvider
This commit is contained in:
parent
d59e748c01
commit
dd7f07c7eb
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)
|
Couple<Integer> generatedRPM = BlockStressValues.getProvider(block) != null ?
|
||||||
.getGeneratedRPM(block);
|
BlockStressValues.getProvider(block).getGeneratedRPM(block)
|
||||||
|
: null;
|
||||||
|
|
||||||
StressImpact impactId = capacity >= config.highCapacity.get() ? StressImpact.HIGH
|
StressImpact impactId = capacity >= config.highCapacity.get() ? StressImpact.HIGH
|
||||||
: (capacity >= config.mediumCapacity.get() ? StressImpact.MEDIUM : StressImpact.LOW);
|
: (capacity >= config.mediumCapacity.get() ? StressImpact.MEDIUM : StressImpact.LOW);
|
||||||
|
|
Loading…
Reference in a new issue