mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 10:12:53 +00:00
fix
This commit is contained in:
parent
185b366d8d
commit
51b0693c99
@ -241,12 +241,7 @@ public class IrisToolbelt {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean hasMantleObject(World world, int x, int y, int z) {
|
public static boolean hasMantleObject(World world, int x, int y, int z) {
|
||||||
try {
|
return getMantleIdentity(world, x, y, z) != -1;
|
||||||
Method m = Class.forName("com.volmit.iris.core.tools.IrisToolbelt").getDeclaredMethod("getMantleData", World.class, int.class, int.class, int.class, Class.class);
|
|
||||||
String s = (String) m.invoke(null, world, x, y, z, String.class);
|
|
||||||
if(s != null) {return true;}
|
|
||||||
} catch(Throwable ignored) {}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static BlockData getMantleBlock(World world, int x, int y, int z) {
|
public static BlockData getMantleBlock(World world, int x, int y, int z) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user