Skip to content

Commit

Permalink
Back ported a JEI event register fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunter19823 committed Nov 10, 2023
1 parent 7e7bc51 commit eb2dff4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package pie.ilikepiefoo.compat.jei;

import dev.architectury.platform.Platform;
import dev.latvian.mods.kubejs.event.EventGroup;
import dev.latvian.mods.kubejs.event.EventHandler;
import pie.ilikepiefoo.compat.jei.events.OnRuntimeAvailableEventJS;
Expand Down Expand Up @@ -32,7 +33,9 @@ public interface JEIEvents {
() -> RegisterVanillaCategoryExtensionsEventJS.class);

static void register() {
GROUP.register();
if (Platform.isModLoaded("jei")) {
GROUP.register();
}
}

}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ enabled_platforms=fabric,forge
archives_base_name=kubejsadditions
mod_id=kubejsadditions
mod_name=KubeJS Addditions
mod_version=3.2.0
mod_version=3.2.1
mod_description=A mod that adds a bunch of additional features to KubeJS.
mod_author=ILIKEPIEFOO2
mod_icon=assets/kubejsadditions/kubejs_logo.png
Expand Down

0 comments on commit eb2dff4

Please sign in to comment.