process translate on command block entity

This commit is contained in:
creeper123123321 2019-03-10 16:36:30 -03:00
parent aca764c288
commit bef3e3d18f
No known key found for this signature in database
GPG Key ID: 0AC57D54786721D1

View File

@ -14,6 +14,10 @@ public class CommandBlockHandler implements BlockEntityProvider.BlockEntityHandl
if (name instanceof StringTag) { if (name instanceof StringTag) {
((StringTag) name).setValue(ChatRewriter.legacyTextToJson(((StringTag) name).getValue())); ((StringTag) name).setValue(ChatRewriter.legacyTextToJson(((StringTag) name).getValue()));
} }
Tag out = tag.get("LastOutput");
if (out instanceof StringTag) {
((StringTag) out).setValue(ChatRewriter.processTranslate(((StringTag) out).getValue()));
}
return -1; return -1;
} }
} }