removed unused stress
This commit is contained in:
parent
773a5d1663
commit
5b872a5440
|
@ -27,11 +27,13 @@ public class SPStress implements IStressValueProvider {
|
|||
if(arg0 instanceof DynamoBlock) {
|
||||
return SPConfig.COMMON.dynamoImpact.get();
|
||||
}
|
||||
String mat=arg0.getRegistryName().getPath().split("_")[0];
|
||||
switch(mat) {
|
||||
case "bronze":return SPConfig.COMMON.bronzeCogwheelImpact.get();
|
||||
case "cast":return SPConfig.COMMON.castIronCogwheelImpact.get();
|
||||
case "steel":return SPConfig.COMMON.steelCogwheelImpact.get();
|
||||
String[] mat=arg0.getRegistryName().getPath().split("_");
|
||||
if(mat[mat.length-1].equals("cogwheel")) {
|
||||
switch(mat[0]) {
|
||||
case "bronze":return SPConfig.COMMON.bronzeCogwheelImpact.get();
|
||||
case "cast":return SPConfig.COMMON.castIronCogwheelImpact.get();
|
||||
case "steel":return SPConfig.COMMON.steelCogwheelImpact.get();
|
||||
}
|
||||
}
|
||||
return BlockStressDefaults.DEFAULT_IMPACTS.getOrDefault(arg0.getRegistryName(),0D);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue