Skip to content

Commit

Permalink
Update version to 5.3.0 for release
Browse files Browse the repository at this point in the history
  • Loading branch information
dmulloy2 committed Oct 20, 2024
1 parent 1e3fa2d commit 3442d3f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 28 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = 'com.comphenix.protocol'
version = '5.3.0-SNAPSHOT'
version = '5.3.0'
description = 'Provides access to the Minecraft protocol'

def isSnapshot = version.endsWith('-SNAPSHOT')
Expand Down
13 changes: 3 additions & 10 deletions src/main/java/com/comphenix/protocol/ProtocolLibrary.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
import com.comphenix.protocol.error.BasicErrorReporter;
import com.comphenix.protocol.error.ErrorReporter;
import com.comphenix.protocol.scheduler.ProtocolScheduler;
import com.comphenix.protocol.utility.MinecraftVersion;
import java.util.List;
import com.google.common.collect.ImmutableList;

import org.apache.commons.lang.Validate;
import org.bukkit.plugin.Plugin;

Expand All @@ -37,17 +35,12 @@ public class ProtocolLibrary {
/**
* The maximum version ProtocolLib has been tested with.
*/
public static final String MAXIMUM_MINECRAFT_VERSION = "1.20.4";
public static final String MAXIMUM_MINECRAFT_VERSION = "1.21.1";

/**
* The date (with ISO 8601 or YYYY-MM-DD) when the most recent version (1.20.4) was released.
*/
public static final String MINECRAFT_LAST_RELEASE_DATE = "2023-12-07";

/**
* Plugins that are currently incompatible with ProtocolLib.
*/
public static final List<String> INCOMPATIBLE = ImmutableList.of("TagAPI");
public static final String MINECRAFT_LAST_RELEASE_DATE = "2024-08-08";

private static Plugin plugin;
private static ProtocolConfig config;
Expand Down
39 changes: 22 additions & 17 deletions src/test/java/com/comphenix/protocol/BukkitInitialization.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import java.util.stream.StreamSupport;

import com.comphenix.protocol.reflect.accessors.Accessors;
import com.comphenix.protocol.reflect.accessors.FieldAccessor;
Expand Down Expand Up @@ -58,6 +57,7 @@
import org.bukkit.craftbukkit.v1_21_R1.util.CraftMagicNumbers;
import org.bukkit.craftbukkit.v1_21_R1.util.CraftNamespacedKey;
import org.bukkit.craftbukkit.v1_21_R1.util.Versioning;
import org.jetbrains.annotations.NotNull;
import org.spigotmc.SpigotWorldConfig;

import static org.mockito.ArgumentMatchers.any;
Expand Down Expand Up @@ -122,7 +122,7 @@ private void initialize() {
resourcePackRepository.c() /* getAvailablePacks() */ .stream().map(ResourcePackLoader::f /* openFull() */).collect(Collectors.toList()));
LayeredRegistryAccess<RegistryLayer> layeredRegistryAccess = RegistryLayer.a(); // .createRegistryAccess()
layeredRegistryAccess = WorldLoader.b(resourceManager, layeredRegistryAccess, RegistryLayer.b /* WORLDGEN */, RegistryDataLoader.a /* WORLDGEN_REGISTRIES */); // .loadAndReplaceLayer()
IRegistryCustom.Dimension registryCustom = layeredRegistryAccess.a().d(); // .compositeAccess().freeze()
IRegistryCustom.Dimension registryCustom = layeredRegistryAccess.a().d(); // .compositeAccess().freeze()
// IRegistryCustom.Dimension registryCustom = layeredRegistryAccess.a().c(); // .compositeAccess().freeze()

DataPackResources dataPackResources = DataPackResources.a(
Expand Down Expand Up @@ -264,20 +264,25 @@ private void setPackage() {

class DummyRegistry<T extends Keyed> implements Registry<T> {

@Override
public Iterator<T> iterator() {
return Collections.emptyIterator();
}

@Override
public T get(NamespacedKey key) {
return null;
}

@Override
public Stream<T> stream() {
List<T> emtpy = Collections.emptyList();
return emtpy.stream();
}
@Override
public Iterator<T> iterator() {
return Collections.emptyIterator();
}

@Override
public T get(NamespacedKey key) {
return null;
}

@Override
public T getOrThrow(@NotNull NamespacedKey namespacedKey) {
return null;
}

@Override
public Stream<T> stream() {
List<T> empty = Collections.emptyList();
return empty.stream();
}
}
}

0 comments on commit 3442d3f

Please sign in to comment.