removed unused stress

This commit is contained in:
khj xiaogu 2021-11-22 20:05:54 +08:00
parent 773a5d1663
commit 5b872a5440
No known key found for this signature in database
GPG key ID: DEA172814EAFF426

View file

@ -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);
}