Game api additions, Refactoring, Translation api edits

This commit is contained in:
2022-09-18 22:57:19 +02:00
parent 59a6e1c423
commit 8409d1cc7d
324 changed files with 20354 additions and 1661 deletions

View File

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