diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index c9caadf..d550d86 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -10,10 +10,10 @@ jobs:
steps:
- uses: actions/checkout@v1
- - name: Set up JDK 11
+ - name: Set up JDK 21
uses: actions/setup-java@v1
with:
- java-version: 11
+ java-version: 21
- name: Build with Maven
run: mvn -B package --file pom.xml
diff --git a/.idea/misc.xml b/.idea/misc.xml
index f0021fd..5cacde7 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -29,9 +29,8 @@
-
-
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 7ee27dc..de917ad 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
tech.sbdevelopment
MapReflectionAPI
- 1.6.3
+ 1.6.4
jar
MapReflectionAPI
@@ -48,14 +48,14 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.10.1
+ 3.13.0
11
org.projectlombok
lombok
- 1.18.30
+ 1.18.32
@@ -63,7 +63,7 @@
org.apache.maven.plugins
maven-shade-plugin
- 3.3.0
+ 3.5.3
package
@@ -95,6 +95,13 @@
${maven.lombok.delombok-target}
false
+
+
+ org.projectlombok
+ lombok
+ 1.18.32
+
+
generate-sources
@@ -108,7 +115,7 @@
org.apache.maven.plugins
maven-javadoc-plugin
- 3.4.0
+ 3.6.3
11
${maven.lombok.delombok-target}
@@ -167,7 +174,7 @@
org.projectlombok
lombok
- 1.18.30
+ 1.18.32
provided
diff --git a/src/main/java/tech/sbdevelopment/mapreflectionapi/utils/XMaterial.java b/src/main/java/tech/sbdevelopment/mapreflectionapi/utils/XMaterial.java
index 95ecaa0..9a43afe 100644
--- a/src/main/java/tech/sbdevelopment/mapreflectionapi/utils/XMaterial.java
+++ b/src/main/java/tech/sbdevelopment/mapreflectionapi/utils/XMaterial.java
@@ -30,7 +30,6 @@ import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.inventory.meta.SpawnEggMeta;
-import org.bukkit.potion.Potion;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
@@ -1908,13 +1907,6 @@ public enum XMaterial {
}
}
- // Potions used the items data value to store
- // information about the type of potion in 1.8
- if (!supports(9) && material.endsWith("ION")) {
- // There's also 16000+ data value technique, but this is more reliable.
- return Potion.fromItemStack(item).isSplash() ? SPLASH_POTION : POTION;
- }
-
// Refer to the enum for info.
// Currently, these are the only materials with a non-zero data value
// that has been renamed after the flattening update.