Skip to content

Commit e8607c0

Browse files
committed
Make getDisplayName return MutableComponent
1 parent f0052a6 commit e8607c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/aztech/modern_industrialization/machines/models/MachineCasing.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
package aztech.modern_industrialization.machines.models;
2525

2626
import net.minecraft.network.chat.Component;
27+
import net.minecraft.network.chat.MutableComponent;
2728
import net.minecraft.resources.ResourceLocation;
2829

2930
public class MachineCasing {
@@ -37,7 +38,7 @@ public String getTranslationKey() {
3738
return "machine_casing.%s.%s".formatted(key.getNamespace(), key.getPath());
3839
}
3940

40-
public Component getDisplayName() {
41+
public MutableComponent getDisplayName() {
4142
return Component.translatable(getTranslationKey());
4243
}
4344
}

0 commit comments

Comments
 (0)