This commit is contained in:
cyberpwn 2022-04-14 20:43:10 -04:00
parent 185b366d8d
commit 51b0693c99

View File

@ -241,12 +241,7 @@ public class IrisToolbelt {
}
public static boolean hasMantleObject(World world, int x, int y, int z) {
try {
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;
return getMantleIdentity(world, x, y, z) != -1;
}
public static BlockData getMantleBlock(World world, int x, int y, int z) {