File tree 1 file changed +8
-1
lines changed
distributor-common/src/main/java/com/xpdustry/distributor/common/audience
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 18
18
*/
19
19
package com .xpdustry .distributor .common .audience ;
20
20
21
+ import arc .util .Strings ;
22
+ import com .xpdustry .distributor .api .DistributorProvider ;
21
23
import com .xpdustry .distributor .api .key .KeyContainer ;
22
24
import com .xpdustry .distributor .api .key .MutableKeyContainer ;
23
25
import com .xpdustry .distributor .api .key .StandardKeys ;
@@ -39,7 +41,12 @@ public KeyContainer getMetadata() {
39
41
if (metadata != null ) {
40
42
if (metadata .muuid () != null ) container .set (StandardKeys .MUUID , metadata .muuid ());
41
43
container .set (StandardKeys .COLOR , metadata .color ());
42
- if (metadata .name () != null ) container .set (StandardKeys .NAME , metadata .name ());
44
+ if (metadata .name () != null ) {
45
+ container .set (StandardKeys .NAME , Strings .stripColors (metadata .name ()));
46
+ container .set (
47
+ StandardKeys .DECORATED_NAME ,
48
+ DistributorProvider .get ().getMindustryComponentDecoder ().decode (metadata .name ()));
49
+ }
43
50
if (metadata .locale () != null ) container .set (StandardKeys .LOCALE , metadata .locale ());
44
51
}
45
52
return KeyContainer .from (container );
You can’t perform that action at this time.
0 commit comments