mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-25 12:06:17 +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
|
// includeLibs just says to include the library in the final jar
|
||||||
dependencies {
|
dependencies {
|
||||||
compile "org.bukkit:bukkit:1.13-R0.1-SNAPSHOT"
|
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");
|
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) {
|
if(getEntityTimeoutField != null) {
|
||||||
this.plugin.getLogger().info("Got field " + getEntityTimeoutField.getName() + " from TileEntityEndGateway");
|
this.plugin.getLogger().info("Got field " + getEntityTimeoutField.getName() + " from TileEntityEndGateway");
|
||||||
}
|
}*/
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -129,7 +129,7 @@ public class CraftBukkit {
|
|||||||
* Blocks the beacon from showing
|
* Blocks the beacon from showing
|
||||||
* @param block
|
* @param block
|
||||||
*/
|
*/
|
||||||
public void setGatewayAgeHigh(Block block) {
|
/*public void setGatewayAgeHigh(Block block) {
|
||||||
if(block.getWorld().getEnvironment() != World.Environment.THE_END &&
|
if(block.getWorld().getEnvironment() != World.Environment.THE_END &&
|
||||||
this.endGatewayClass.isAssignableFrom(block.getState().getClass())) {
|
this.endGatewayClass.isAssignableFrom(block.getState().getClass())) {
|
||||||
try {
|
try {
|
||||||
@ -143,5 +143,5 @@ public class CraftBukkit {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user