Game api additions, Refactoring, Translation api edits
This commit is contained in:
@@ -30,7 +30,7 @@ public abstract class TranslatableMessage implements Sendable {
|
||||
}
|
||||
|
||||
public TranslatableMessage appendTranslated(String mapId) {
|
||||
chain.add(new TranslatedComponent(mapId));
|
||||
chain.add(TranslatedComponent.raw(mapId));
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ public abstract class TranslatableMessage implements Sendable {
|
||||
public Component build(Player p) {
|
||||
ComponentBuilder out = Component.text();
|
||||
chain.forEach(componentLike -> {
|
||||
if(componentLike instanceof Translatable t) t.compute(p);
|
||||
if(componentLike instanceof Translatable t) t.assemble(p);
|
||||
|
||||
out.append(componentLike);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user