Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
<dependency>
<groupId>com.github.cryptomorin</groupId>
<artifactId>XSeries</artifactId>
<version>10.0.0</version>
<version>13.7.0</version>
</dependency>

<dependency>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/mcteam/ancientgates/Gates.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.bukkit.Material;

import com.cryptomorin.xseries.XMaterial;
import com.cryptomorin.xseries.reflection.XReflection;

public enum GateMaterial {
// AIR
Expand All @@ -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()),
Expand All @@ -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());
Expand Down
Loading