diff --git a/Changelog.md b/Changelog.md index cb06056..e4d67fa 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,3 +1,7 @@ +Flan 1.8.1.1 +================ +- Check for version of fabric permission api + Flan 1.8.1 ================ - Relocating shaded libs. Should solve some lib problems. diff --git a/fabric/src/main/java/io/github/flemmli97/flan/fabric/FlanFabric.java b/fabric/src/main/java/io/github/flemmli97/flan/fabric/FlanFabric.java index d748b02..8306c9a 100644 --- a/fabric/src/main/java/io/github/flemmli97/flan/fabric/FlanFabric.java +++ b/fabric/src/main/java/io/github/flemmli97/flan/fabric/FlanFabric.java @@ -55,7 +55,9 @@ public class FlanFabric implements ModInitializer { ServerPlayConnectionEvents.DISCONNECT.register((handler, server) -> PlayerEvents.onLogout(handler.player)); CommandRegistrationCallback.EVENT.register((dispatcher, reg, env) -> CommandClaim.register(dispatcher, env == Commands.CommandSelection.DEDICATED)); - Flan.permissionAPI = FabricLoader.getInstance().isModLoaded("fabric-permissions-api-v0"); + Flan.permissionAPI = FabricLoader.getInstance() + .getModContainer("fabric-permissions-api-v0") + .map(c -> c.getMetadata().getVersion().getFriendlyString().equals("0.2-SNAPSHOT")).orElse(false); Flan.gunpowder = FabricLoader.getInstance().isModLoaded("gunpowder-currency"); Flan.playerAbilityLib = FabricLoader.getInstance().isModLoaded("playerabilitylib"); Flan.ftbRanks = FabricLoader.getInstance().isModLoaded("ftbranks"); diff --git a/gradle.properties b/gradle.properties index a93a707..549b748 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ forge_version=1.19-41.1.0 # check these on https://fabricmc.net/use loader_version=0.14.8 # Mod Properties -mod_version=1.8.1 +mod_version=1.8.1.1 maven_group=io.github.flemmli97 archives_base_name=flan