Merge pull request #777 from Vatuu/Development

Fixed MythicMobs api change
This commit is contained in:
Brian Fopiano 2022-04-02 13:11:13 -07:00 committed by GitHub
commit ce56224038
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -65,7 +65,7 @@ public class MythicMobsLink {
} }
try { try {
Class<?> mythicMobClass = Class.forName("io.lumine.xikage.mythicmobs.MythicMobs"); Class<?> mythicMobClass = Class.forName("io.lumine.mythic.bukkit.MythicBukkit");
Method getInst = mythicMobClass.getDeclaredMethod("inst"); Method getInst = mythicMobClass.getDeclaredMethod("inst");
Object inst = getInst.invoke(null); Object inst = getInst.invoke(null);
Method getAPIHelper = mythicMobClass.getDeclaredMethod("getAPIHelper"); Method getAPIHelper = mythicMobClass.getDeclaredMethod("getAPIHelper");

View File

@ -405,7 +405,7 @@ public class IrisDimension extends IrisRegistrant {
} }
} }
if(!dimensionHeight.equals(new IrisRange(-64, 320))) { /* if(!dimensionHeight.equals(new IrisRange(-64, 320))) {
File dimType = new File(datapacks, "iris/data/minecraft/dimension_type/" + getLoadKey().toLowerCase() + ".json"); File dimType = new File(datapacks, "iris/data/minecraft/dimension_type/" + getLoadKey().toLowerCase() + ".json");
if(!dimType.exists()) if(!dimType.exists())
changed = true; changed = true;
@ -417,8 +417,7 @@ public class IrisDimension extends IrisRegistrant {
} catch(IOException e) { } catch(IOException e) {
Iris.reportError(e); Iris.reportError(e);
e.printStackTrace(); e.printStackTrace();
} }*/
}
if(write) { if(write) {
File mcm = new File(datapacks, "iris/pack.mcmeta"); File mcm = new File(datapacks, "iris/pack.mcmeta");
@ -427,7 +426,7 @@ public class IrisDimension extends IrisRegistrant {
{ {
"pack": { "pack": {
"description": "Iris Data Pack. This pack contains all installed Iris Packs' resources.", "description": "Iris Data Pack. This pack contains all installed Iris Packs' resources.",
"pack_format": 7 "pack_format": 9
} }
} }
"""); """);