Skip to content
Closed
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
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@
<id>CodeMC</id>
<url>https://repo.codemc.org/repository/maven-public/</url>
</repository>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>

<dependencies>
Expand Down Expand Up @@ -172,7 +176,7 @@
<dependency>
<groupId>com.github.cryptomorin</groupId>
<artifactId>XSeries</artifactId>
<version>10.0.0</version>
<version>13.8.0</version>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/mcteam/ancientgates/Gates.java
Original file line number Diff line number Diff line change
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 (XMaterial.supports(13, 0)) {
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 @@ -20,7 +20,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", XMaterial.supports(13, 0) ? Material.LAVA : Material.getMaterial("STATIONARY_LAVA")),

// NETHER
PORTAL("nether blocks", XMaterial.NETHER_PORTAL.parseMaterial()),
Expand All @@ -29,7 +29,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", XMaterial.supports(13, 0) ? Material.WATER : Material.getMaterial("STATIONARY_WATER")),

// WEB
WEB("spiders web blocks", XMaterial.COBWEB.parseMaterial());
Expand Down