Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2025-01-12 07:56:15 +01:00
Ursprung
b09950dc64
Commit
e020dd69ef
@ -319,10 +319,7 @@ public class PlayerPacket1_13 extends RewriterBase<Protocol1_12_2To1_13> {
|
|||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
String match = wrapper.read(Type.STRING);
|
String match = wrapper.read(Type.STRING);
|
||||||
wrapper.write(Type.STRING, (start == 0 && !storage.isLastAssumeCommand() ? "/" : "") + match);
|
wrapper.write(Type.STRING, (start == 0 && !storage.isLastAssumeCommand() ? "/" : "") + match);
|
||||||
// Ignore tooltip
|
wrapper.read(Type.OPTIONAL_COMPONENT); // Remove tooltip
|
||||||
if (wrapper.read(Type.BOOLEAN)) {
|
|
||||||
wrapper.read(Type.STRING);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -136,10 +136,7 @@ public class Protocol1_13To1_13_1 extends BackwardsProtocol<ClientboundPackets1_
|
|||||||
int count = wrapper.get(Type.VAR_INT, 3);
|
int count = wrapper.get(Type.VAR_INT, 3);
|
||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
wrapper.passthrough(Type.STRING);
|
wrapper.passthrough(Type.STRING);
|
||||||
boolean hasTooltip = wrapper.passthrough(Type.BOOLEAN);
|
wrapper.passthrough(Type.OPTIONAL_COMPONENT); // Tooltip
|
||||||
if (hasTooltip) {
|
|
||||||
wrapper.passthrough(Type.STRING); // JSON Tooltip
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren