Skip to content

Commit 3442d3f

Browse files
committed
Update version to 5.3.0 for release
1 parent 1e3fa2d commit 3442d3f

File tree

3 files changed

+26
-28
lines changed

3 files changed

+26
-28
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group = 'com.comphenix.protocol'
8-
version = '5.3.0-SNAPSHOT'
8+
version = '5.3.0'
99
description = 'Provides access to the Minecraft protocol'
1010

1111
def isSnapshot = version.endsWith('-SNAPSHOT')

src/main/java/com/comphenix/protocol/ProtocolLibrary.java

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
import com.comphenix.protocol.error.BasicErrorReporter;
1818
import com.comphenix.protocol.error.ErrorReporter;
1919
import com.comphenix.protocol.scheduler.ProtocolScheduler;
20-
import com.comphenix.protocol.utility.MinecraftVersion;
21-
import java.util.List;
22-
import com.google.common.collect.ImmutableList;
20+
2321
import org.apache.commons.lang.Validate;
2422
import org.bukkit.plugin.Plugin;
2523

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

4240
/**
4341
* The date (with ISO 8601 or YYYY-MM-DD) when the most recent version (1.20.4) was released.
4442
*/
45-
public static final String MINECRAFT_LAST_RELEASE_DATE = "2023-12-07";
46-
47-
/**
48-
* Plugins that are currently incompatible with ProtocolLib.
49-
*/
50-
public static final List<String> INCOMPATIBLE = ImmutableList.of("TagAPI");
43+
public static final String MINECRAFT_LAST_RELEASE_DATE = "2024-08-08";
5144

5245
private static Plugin plugin;
5346
private static ProtocolConfig config;

src/test/java/com/comphenix/protocol/BukkitInitialization.java

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import java.util.List;
66
import java.util.stream.Collectors;
77
import java.util.stream.Stream;
8-
import java.util.stream.StreamSupport;
98

109
import com.comphenix.protocol.reflect.accessors.Accessors;
1110
import com.comphenix.protocol.reflect.accessors.FieldAccessor;
@@ -58,6 +57,7 @@
5857
import org.bukkit.craftbukkit.v1_21_R1.util.CraftMagicNumbers;
5958
import org.bukkit.craftbukkit.v1_21_R1.util.CraftNamespacedKey;
6059
import org.bukkit.craftbukkit.v1_21_R1.util.Versioning;
60+
import org.jetbrains.annotations.NotNull;
6161
import org.spigotmc.SpigotWorldConfig;
6262

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

128128
DataPackResources dataPackResources = DataPackResources.a(
@@ -264,20 +264,25 @@ private void setPackage() {
264264

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

267-
@Override
268-
public Iterator<T> iterator() {
269-
return Collections.emptyIterator();
270-
}
271-
272-
@Override
273-
public T get(NamespacedKey key) {
274-
return null;
275-
}
276-
277-
@Override
278-
public Stream<T> stream() {
279-
List<T> emtpy = Collections.emptyList();
280-
return emtpy.stream();
281-
}
267+
@Override
268+
public Iterator<T> iterator() {
269+
return Collections.emptyIterator();
270+
}
271+
272+
@Override
273+
public T get(NamespacedKey key) {
274+
return null;
275+
}
276+
277+
@Override
278+
public T getOrThrow(@NotNull NamespacedKey namespacedKey) {
279+
return null;
280+
}
281+
282+
@Override
283+
public Stream<T> stream() {
284+
List<T> empty = Collections.emptyList();
285+
return empty.stream();
286+
}
282287
}
283288
}

0 commit comments

Comments
 (0)