This commit is contained in:
KennyTV 2021-04-21 13:51:59 +02:00
parent d40ce9fc4a
commit 2b19a98809
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B
5 changed files with 4 additions and 11 deletions

View File

@ -57,6 +57,7 @@ public interface ProtocolManager {
* Returns the base protocol for a specific server protocol version.
* The standard base protocols deal with status and login packets for userconnection initialization.
*
* @param serverVersion server protocol version
* @return base protocol for the given server protocol version
*/
Protocol getBaseProtocol(int serverVersion);

View File

@ -76,7 +76,7 @@ public class ProtocolVersion {
public static final ProtocolVersion v1_16_2 = register(751, "1.16.2");
public static final ProtocolVersion v1_16_3 = register(753, "1.16.3");
public static final ProtocolVersion v1_16_4 = register(754, "1.16.4/5", new VersionRange("1.16", 4, 5));
public static final ProtocolVersion v1_17 = register(755, 22, "1.17");
public static final ProtocolVersion v1_17 = register(755, 23, "1.17");
public static final ProtocolVersion unknown = register(-1, "UNKNOWN");
public static ProtocolVersion register(int version, String name) {

View File

@ -35,12 +35,4 @@ public interface VersionProvider extends Provider {
* @return closest server protocol version to the user's protocol version
*/
int getClosestServerProtocol(UserConnection connection) throws Exception;
/**
* @deprecated misleading name, use {@link #getClosestServerProtocol(UserConnection)}
*/
@Deprecated
default int getServerProtocol(UserConnection connection) throws Exception {
return getClosestServerProtocol(connection);
}
}

View File

@ -8,7 +8,7 @@ plugins {
allprojects {
group = "us.myles"
version = "3.3.0-21w15a"
version = "3.3.0-21w16a"
description = "Allow newer clients to join older server versions."
}

View File

@ -212,7 +212,7 @@ public class Protocol1_17To1_16_4 extends Protocol<ClientboundPackets1_16_2, Cli
"minecraft:coal_ores", "minecraft:copper_ores", "minecraft:emerald_ores", "minecraft:cluster_max_harvestables");
tagRewriter.addEmptyTags(RegistryType.BLOCK, "minecraft:crystal_sound_blocks", "minecraft:candle_cakes", "minecraft:candles",
"minecraft:snow_step_sound_blocks", "minecraft:inside_step_sound_blocks", "minecraft:occludes_vibration_signals", "minecraft:dripstone_replaceable_blocks",
"minecraft:cave_vines", "minecraft:lush_plants_replaceable", "minecraft:deepslate_ore_replaceables", "minecraft:lush_ground_replaceable",
"minecraft:cave_vines", "minecraft:moss_replaceable", "minecraft:deepslate_ore_replaceables", "minecraft:lush_ground_replaceable",
"minecraft:diamond_ores", "minecraft:iron_ores", "minecraft:lapis_ores", "minecraft:redstone_ores", "minecraft:stone_ore_replaceables",
"minecraft:coal_ores", "minecraft:copper_ores", "minecraft:emerald_ores", "minecraft:dirt", "minecraft:snow");
tagRewriter.addEmptyTags(RegistryType.ENTITY, "minecraft:powder_snow_walkable_mobs", "minecraft:axolotl_always_hostiles", "minecraft:axolotl_tempted_hostiles",