Replacing substring with replaceAll using regex (#178)
This commit is contained in:
parent
3408941d33
commit
691871ebbb
|
@ -85,7 +85,7 @@ public class CraftLegacyLegacyMixin {
|
||||||
if (((MaterialBridge) (Object) material).bridge$getType() == MaterialPropertySpec.MaterialType.FORGE) {
|
if (((MaterialBridge) (Object) material).bridge$getType() == MaterialPropertySpec.MaterialType.FORGE) {
|
||||||
return material.name();
|
return material.name();
|
||||||
} else {
|
} else {
|
||||||
return material.name().substring("LEGACY_".length());
|
return material.name().replaceAll("^LEGACY_", "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user