3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-20 06:50:08 +01:00

Merge remote-tracking branch 'origin/master' into dev

Dieser Commit ist enthalten in:
KennyTV 2021-02-06 15:38:06 +01:00
Commit e09c3b0159
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B
3 geänderte Dateien mit 6 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -54,8 +54,10 @@ public class BukkitEncodeHandler extends MessageToByteEncoder implements ViaHand
throw (Error) e.getCause(); throw (Error) e.getCause();
} }
} }
}
} else {
bytebuf.writeBytes((ByteBuf) o);
}
transform(bytebuf); transform(bytebuf);
} }

Datei anzeigen

@ -31,7 +31,7 @@ public class InformativeException extends Exception {
@Override @Override
public String getMessage() { public String getMessage() {
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
builder.append("Please post this error to https://github.com/ViaVersion/ViaVersion/issues\n{"); builder.append("Please post this error to https://github.com/ViaVersion/ViaVersion/issues and follow the issue template\n{");
int i = 0; int i = 0;
for (Map.Entry<String, Object> entry : info.entrySet()) { for (Map.Entry<String, Object> entry : info.entrySet()) {
builder.append(i == 0 ? "" : ", ").append(entry.getKey()).append(": ").append(entry.getValue().toString()); builder.append(i == 0 ? "" : ", ").append(entry.getKey()).append(": ").append(entry.getValue().toString());

Datei anzeigen

@ -35,8 +35,9 @@ public class SpongeEncodeHandler extends MessageToByteEncoder<Object> implements
throw (Error) e.getCause(); throw (Error) e.getCause();
} }
} }
} else {
bytebuf.writeBytes((ByteBuf) o);
} }
transform(bytebuf); transform(bytebuf);
} }