Fix Chat meta type

Fixes #1949
This commit is contained in:
KennyTV 2020-08-03 08:39:39 +02:00
parent 5051e7ea48
commit be2ba2b1b9
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B
3 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ public enum MetaType1_12 implements MetaType {
VarInt(1, Type.VAR_INT),
Float(2, Type.FLOAT),
String(3, Type.STRING),
Chat(4, Type.STRING),
Chat(4, Type.COMPONENT),
Slot(5, Type.ITEM),
Boolean(6, Type.BOOLEAN),
Vector3F(7, Type.ROTATION),

View File

@ -8,7 +8,7 @@ public enum MetaType1_9 implements MetaType {
VarInt(1, Type.VAR_INT),
Float(2, Type.FLOAT),
String(3, Type.STRING),
Chat(4, Type.STRING),
Chat(4, Type.COMPONENT),
Slot(5, Type.ITEM),
Boolean(6, Type.BOOLEAN),
Vector3F(7, Type.ROTATION),

View File

@ -121,7 +121,7 @@ public class MetadataRewriter1_9To1_8 extends MetadataRewriter {
metadata.setValue(angle);
break;
case Chat:
value = Protocol1_9To1_8.fixJson((String) value);
value = Protocol1_9To1_8.fixJson(value.toString());
metadata.setValue(value);
break;
default: