Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-09-08 22:02:50 +02: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),
|
VarInt(1, Type.VAR_INT),
|
||||||
Float(2, Type.FLOAT),
|
Float(2, Type.FLOAT),
|
||||||
String(3, Type.STRING),
|
String(3, Type.STRING),
|
||||||
Chat(4, Type.STRING),
|
Chat(4, Type.COMPONENT),
|
||||||
Slot(5, Type.ITEM),
|
Slot(5, Type.ITEM),
|
||||||
Boolean(6, Type.BOOLEAN),
|
Boolean(6, Type.BOOLEAN),
|
||||||
Vector3F(7, Type.ROTATION),
|
Vector3F(7, Type.ROTATION),
|
||||||
|
@ -8,7 +8,7 @@ public enum MetaType1_9 implements MetaType {
|
|||||||
VarInt(1, Type.VAR_INT),
|
VarInt(1, Type.VAR_INT),
|
||||||
Float(2, Type.FLOAT),
|
Float(2, Type.FLOAT),
|
||||||
String(3, Type.STRING),
|
String(3, Type.STRING),
|
||||||
Chat(4, Type.STRING),
|
Chat(4, Type.COMPONENT),
|
||||||
Slot(5, Type.ITEM),
|
Slot(5, Type.ITEM),
|
||||||
Boolean(6, Type.BOOLEAN),
|
Boolean(6, Type.BOOLEAN),
|
||||||
Vector3F(7, Type.ROTATION),
|
Vector3F(7, Type.ROTATION),
|
||||||
|
@ -63,7 +63,7 @@ public class ChatRewriter {
|
|||||||
|
|
||||||
component = new TextComponent();
|
component = new TextComponent();
|
||||||
component.setColor(format);
|
component.setColor(format);
|
||||||
// ViaVersion start
|
// ViaVersion start - Items have style default to italic
|
||||||
component.setBold(false);
|
component.setBold(false);
|
||||||
component.setItalic(false);
|
component.setItalic(false);
|
||||||
component.setUnderlined(false);
|
component.setUnderlined(false);
|
||||||
@ -73,7 +73,7 @@ public class ChatRewriter {
|
|||||||
} else {
|
} else {
|
||||||
component = new TextComponent();
|
component = new TextComponent();
|
||||||
component.setColor(format);
|
component.setColor(format);
|
||||||
// ViaVersion start
|
// ViaVersion start- Items have style default to italic
|
||||||
component.setBold(false);
|
component.setBold(false);
|
||||||
component.setItalic(false);
|
component.setItalic(false);
|
||||||
component.setUnderlined(false);
|
component.setUnderlined(false);
|
||||||
|
@ -121,7 +121,7 @@ public class MetadataRewriter1_9To1_8 extends MetadataRewriter {
|
|||||||
metadata.setValue(angle);
|
metadata.setValue(angle);
|
||||||
break;
|
break;
|
||||||
case Chat:
|
case Chat:
|
||||||
value = Protocol1_9To1_8.fixJson((String) value);
|
value = Protocol1_9To1_8.fixJson(value.toString());
|
||||||
metadata.setValue(value);
|
metadata.setValue(value);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren