|
private static DoubleSupplier getImpact(Block block) { |
|
if (!(block instanceof CGBacktankBlock)) return () -> 0; |
|
return () -> BlockStressValues.getImpact(AllBlocks.COPPER_BACKTANK.get()); |
|
} |
By returning
0 for any blocks that are not
CGBacktankBlock you are going to break any other mod that registers a stress provider after yours. This is affected by mod load order and can cause a lot of frustration for mod pack makers. The correct implementation should return
null to pass the control to other impact providers.
CreateGoggles/common/src/main/java/com/robocraft999/creategoggles/registry/CGBlocks.java
Lines 77 to 80 in 26b98e0
By returning
0for any blocks that are notCGBacktankBlockyou are going to break any other mod that registers a stress provider after yours. This is affected by mod load order and can cause a lot of frustration for mod pack makers. The correct implementation should returnnullto pass the control to other impact providers.