Skip to content

Commit 083c8e1

Browse files
committed
Mark ParticleTypes as immutable, update tested version
1 parent 6ff6976 commit 083c8e1

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ public class ProtocolLibrary {
3939
/**
4040
* The maximum version ProtocolLib has been tested with.
4141
*/
42-
public static final String MAXIMUM_MINECRAFT_VERSION = "1.12.2";
42+
public static final String MAXIMUM_MINECRAFT_VERSION = "1.13.1";
4343

4444
/**
45-
* The date (with ISO 8601 or YYYY-MM-DD) when the most recent version (1.12.2) was released.
45+
* The date (with ISO 8601 or YYYY-MM-DD) when the most recent version (1.13.1) was released.
4646
*/
47-
public static final String MINECRAFT_LAST_RELEASE_DATE = "2017-09-18";
47+
public static final String MINECRAFT_LAST_RELEASE_DATE = "2018-08-22";
4848

4949
/**
5050
* Plugins that are currently incompatible with ProtocolLib.

modules/API/src/main/java/com/comphenix/protocol/reflect/cloning/ImmutableDetector.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import javax.crypto.SecretKey;
3434

3535
import com.comphenix.protocol.utility.MinecraftReflection;
36+
import com.comphenix.protocol.utility.MinecraftVersion;
3637
import com.google.common.collect.ImmutableSet;
3738
import com.google.common.collect.Sets;
3839
import com.google.common.primitives.Primitives;
@@ -62,8 +63,12 @@ public class ImmutableDetector implements Cloner {
6263
add(() -> MinecraftReflection.getMinecraftClass("SoundEffect"));
6364
add(MinecraftReflection::getBlockClass);
6465
add(MinecraftReflection::getItemClass);
65-
add(MinecraftReflection::getFluidTypeClass);
66-
add(MinecraftReflection::getParticleTypeClass);
66+
67+
if (MinecraftVersion.atOrAbove(MinecraftVersion.AQUATIC_UPDATE)) {
68+
add(() -> MinecraftReflection.getMinecraftClass("Particle"));
69+
add(MinecraftReflection::getFluidTypeClass);
70+
add(MinecraftReflection::getParticleTypeClass);
71+
}
6772
}
6873

6974
private static void add(Supplier<Class<?>> getClass) {

0 commit comments

Comments
 (0)