diff --git a/pom.xml b/pom.xml index 464fe7b..f3aba57 100644 --- a/pom.xml +++ b/pom.xml @@ -172,7 +172,7 @@ com.github.cryptomorin XSeries - 10.0.0 + 13.7.0 diff --git a/src/main/java/org/mcteam/ancientgates/Gates.java b/src/main/java/org/mcteam/ancientgates/Gates.java index c5c68b6..33fc87d 100644 --- a/src/main/java/org/mcteam/ancientgates/Gates.java +++ b/src/main/java/org/mcteam/ancientgates/Gates.java @@ -14,7 +14,7 @@ import org.mcteam.ancientgates.util.types.GateMaterial; import org.mcteam.ancientgates.util.types.WorldCoord; -import com.cryptomorin.xseries.XMaterial; +import com.cryptomorin.xseries.reflection.XReflection; public class Gates { @@ -127,7 +127,7 @@ public static boolean open(final Gate gate) { coord.getBlock().setBiome(Biome.FOREST); } if (orientation == FloodOrientation.VERTICAL1 && material == GateMaterial.PORTAL) { - if (XMaterial.supports(13)) { + if (XReflection.supports(13)) { final BlockData orientable = coord.getBlock().getBlockData(); ((Orientable) orientable).setAxis(Axis.Z); coord.getBlock().setBlockData(orientable); diff --git a/src/main/java/org/mcteam/ancientgates/util/types/GateMaterial.java b/src/main/java/org/mcteam/ancientgates/util/types/GateMaterial.java index 7106ebf..6671552 100644 --- a/src/main/java/org/mcteam/ancientgates/util/types/GateMaterial.java +++ b/src/main/java/org/mcteam/ancientgates/util/types/GateMaterial.java @@ -7,6 +7,7 @@ import org.bukkit.Material; import com.cryptomorin.xseries.XMaterial; +import com.cryptomorin.xseries.reflection.XReflection; public enum GateMaterial { // AIR @@ -20,7 +21,7 @@ public enum GateMaterial { ENDPORTAL("ender portal blocks", XMaterial.END_PORTAL.parseMaterial()), // LAVA - LAVA("stationary lava blocks", XMaterial.supports(13) ? Material.LAVA : Material.getMaterial("STATIONARY_LAVA")), + LAVA("stationary lava blocks", XReflection.supports(13) ? Material.LAVA : Material.getMaterial("STATIONARY_LAVA")), // NETHER PORTAL("nether blocks", XMaterial.NETHER_PORTAL.parseMaterial()), @@ -29,7 +30,7 @@ public enum GateMaterial { SUGARCANE("sugarcane blocks", XMaterial.SUGAR_CANE.parseMaterial()), // WATER - WATER("stationary water blocks", XMaterial.supports(13) ? Material.WATER : Material.getMaterial("STATIONARY_WATER")), + WATER("stationary water blocks", XReflection.supports(13) ? Material.WATER : Material.getMaterial("STATIONARY_WATER")), // WEB WEB("spiders web blocks", XMaterial.COBWEB.parseMaterial());