This commit is contained in:
IzzelAliz 2021-02-24 21:03:04 +08:00
commit 6c17585071

View File

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