The current implementation of CCStressProvider can break other Create addons which register their own stress providers. It returns a valid DoubleSupplier for all blocks, even if they don't come from Compressed Creativity, which blocks all downstream providers from firing. The default return value for impact and capacity functions should be null.
|
public DoubleSupplier getImpact(Block block) { |
|
if (block instanceof RotationalCompressorBlock) { |
|
return (() -> CommonConfig.ROTATIONAL_COMPRESSOR_STRESS.get() / 256.0); |
|
} |
|
return (() -> 0.0); |
|
} |
|
|
|
public DoubleSupplier getCapacity(Block block) { |
|
if (block instanceof CompressedAirEngineBlock) { |
|
return (() -> CommonConfig.COMPRESSED_AIR_ENGINE_STRESS.get() / 256.0); |
|
} |
|
return (() -> 0.0); |
|
} |
The current implementation of
CCStressProvidercan break other Create addons which register their own stress providers. It returns a valid DoubleSupplier for all blocks, even if they don't come from Compressed Creativity, which blocks all downstream providers from firing. The default return value for impact and capacity functions should be null.CompressedCreativity/src/main/java/com/lgmrszd/compressedcreativity/config/CCStressProvider.java
Lines 12 to 24 in 6ab5171