Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2025-01-11 23:51:00 +01:00
Fix signs correcting any json issues.
Dieser Commit ist enthalten in:
Ursprung
a6cfcac675
Commit
6f605e8d6c
@ -271,12 +271,17 @@ public class OutgoingTransformer {
|
||||
}
|
||||
return;
|
||||
}
|
||||
if(packet == PacketType.PLAY_UPDATE_SIGN){
|
||||
if (packet == PacketType.PLAY_UPDATE_SIGN) {
|
||||
Long location = input.readLong();
|
||||
output.writeLong(location);
|
||||
for(int i = 0;i<4;i++){
|
||||
for (int i = 0; i < 4; i++) {
|
||||
String line = PacketUtil.readString(input);
|
||||
if(line.startsWith("\"")){
|
||||
if (line == null || line.equalsIgnoreCase("null")) {
|
||||
line = "{\"text\":\"\"}";
|
||||
} else {
|
||||
if (!line.startsWith("\"") && !line.startsWith("{"))
|
||||
line = "\"" + line + "\"";
|
||||
if (line.startsWith("\""))
|
||||
line = "{\"text\":" + line + "}";
|
||||
}
|
||||
PacketUtil.writeString(line, output);
|
||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren