Added netty to gradle and removed gateway call

This commit is contained in:
Sekwah 2019-04-13 23:00:09 +01:00
parent 70347779c2
commit dbf101bb4e
2 changed files with 6 additions and 5 deletions

View File

@ -28,6 +28,7 @@ repositories {
// includeLibs just says to include the library in the final jar
dependencies {
compile "org.bukkit:bukkit:1.13-R0.1-SNAPSHOT"
compile "io.netty:netty-all:4.0.4.Final"
}

View File

@ -80,12 +80,12 @@ public class CraftBukkit {
getWorldHandleMethod = Class.forName(craftBukkitPackage + "CraftWorld").getMethod("getHandle");
getTileEntityMethod = Class.forName(minecraftPackage + "WorldServer").getMethod("getTileEntity", blockPos);
//getTileEntityMethod = Class.forName(minecraftPackage + "WorldServer").getMethod("getTileEntity", blockPos);
getEntityTimeoutField = ReflectionHelper.getFieldByType(Class.forName(minecraftPackage + "TileEntityEndGateway"), int.class, false);
/*getEntityTimeoutField = ReflectionHelper.getFieldByType(Class.forName(minecraftPackage + "TileEntityEndGateway"), int.class, false);
if(getEntityTimeoutField != null) {
this.plugin.getLogger().info("Got field " + getEntityTimeoutField.getName() + " from TileEntityEndGateway");
}
}*/
} catch (Exception e) {
e.printStackTrace();
@ -129,7 +129,7 @@ public class CraftBukkit {
* Blocks the beacon from showing
* @param block
*/
public void setGatewayAgeHigh(Block block) {
/*public void setGatewayAgeHigh(Block block) {
if(block.getWorld().getEnvironment() != World.Environment.THE_END &&
this.endGatewayClass.isAssignableFrom(block.getState().getClass())) {
try {
@ -143,5 +143,5 @@ public class CraftBukkit {
e.printStackTrace();
}
}
}
}*/
}