13
0
geforkt von Mirrors/Velocity

Snapshot 21w03a

Dieser Commit ist enthalten in:
FivePB 2021-01-20 20:13:56 +01:00
Ursprung 76493549bf
Commit f0d9a445ed
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 37DED8CFF428E1A4
3 geänderte Dateien mit 6 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -54,7 +54,7 @@ public enum ProtocolVersion {
MINECRAFT_1_16_2(751, "1.16.2"), MINECRAFT_1_16_2(751, "1.16.2"),
MINECRAFT_1_16_3(753, "1.16.3"), MINECRAFT_1_16_3(753, "1.16.3"),
MINECRAFT_1_16_4(754, "1.16.4", "1.16.5"), MINECRAFT_1_16_4(754, "1.16.4", "1.16.5"),
MINECRAFT_1_17(-1, 9, "1.17"); // Note: Indev as of 20w45a (754, borked by Mojang) MINECRAFT_1_17(-1, 11, "1.17"); // Snapshot: 21w03a, future protocol: 755
private static final int SNAPSHOT_BIT = 30; private static final int SNAPSHOT_BIT = 30;

Datei anzeigen

@ -252,8 +252,10 @@ public interface Player extends CommandSource, Identified, InboundConnection,
* *
* @param url the URL for the resource pack * @param url the URL for the resource pack
* @param hash the SHA-1 hash value for the resource pack * @param hash the SHA-1 hash value for the resource pack
* @param isRequired flag to set the resource pack as required in 1.17+ * @param isRequired Only in 1.17+ or newer: If true shows the pack as required to play,
* and removes the decline option. Declining it anyway will disconnect the user.
*/ */
void sendResourcePack(String url, byte[] hash, boolean isRequired); void sendResourcePack(String url, byte[] hash, boolean isRequired);
} }

Datei anzeigen

@ -242,9 +242,9 @@ public final class DimensionData {
Integer height = details.keySet().contains("height") ? details.getInt("height") : null; Integer height = details.keySet().contains("height") ? details.getInt("height") : null;
if (version.compareTo(ProtocolVersion.MINECRAFT_1_17) >= 0) { if (version.compareTo(ProtocolVersion.MINECRAFT_1_17) >= 0) {
Preconditions.checkNotNull(height, Preconditions.checkNotNull(height,
"DimensionData requires 'minY' to be present for this version");
Preconditions.checkNotNull(minY,
"DimensionData requires 'height' to be present for this version"); "DimensionData requires 'height' to be present for this version");
Preconditions.checkNotNull(minY,
"DimensionData requires 'minY' to be present for this version");
} }
return new DimensionData( return new DimensionData(
UNKNOWN_DIMENSION_ID, null, isNatural, ambientLight, isShrunk, UNKNOWN_DIMENSION_ID, null, isNatural, ambientLight, isShrunk,