mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-22 02:25:49 +01:00
Added netty to gradle and removed gateway call
This commit is contained in:
parent
70347779c2
commit
dbf101bb4e
@ -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"
|
||||
}
|
||||
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user