Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-28 17:10:13 +01:00
Merge branch 'master' into dev
# Conflicts: # pom.xml
Dieser Commit ist enthalten in:
Commit
2b50f6c713
@ -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),
|
||||
|
@ -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),
|
||||
|
@ -63,7 +63,7 @@ public class ChatRewriter {
|
||||
|
||||
component = new TextComponent();
|
||||
component.setColor(format);
|
||||
// ViaVersion start
|
||||
// ViaVersion start - Items have style default to italic
|
||||
component.setBold(false);
|
||||
component.setItalic(false);
|
||||
component.setUnderlined(false);
|
||||
@ -73,7 +73,7 @@ public class ChatRewriter {
|
||||
} else {
|
||||
component = new TextComponent();
|
||||
component.setColor(format);
|
||||
// ViaVersion start
|
||||
// ViaVersion start- Items have style default to italic
|
||||
component.setBold(false);
|
||||
component.setItalic(false);
|
||||
component.setUnderlined(false);
|
||||
|
@ -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:
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren