diff --git a/gradle.properties b/gradle.properties index 48b1a2c..e6e172c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ org.gradle.jvmargs = -Xmx1G org.gradle.parallel = true -version = 8.0.0 +version = 8.1.0 maven_group = net.ludocrypt archives_base_name = limlib \ No newline at end of file diff --git a/src/main/java/net/ludocrypt/limlib/impl/Limlib.java b/src/main/java/net/ludocrypt/limlib/impl/Limlib.java index 8fc670f..c9db04b 100644 --- a/src/main/java/net/ludocrypt/limlib/impl/Limlib.java +++ b/src/main/java/net/ludocrypt/limlib/impl/Limlib.java @@ -1,10 +1,12 @@ package net.ludocrypt.limlib.impl; import org.quiltmc.loader.api.ModContainer; +import org.quiltmc.loader.api.QuiltLoader; import org.quiltmc.qsl.base.api.entrypoint.ModInitializer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import net.ludocrypt.limlib.api.LimlibRegistrar; import net.ludocrypt.limlib.api.LimlibWorld; import net.ludocrypt.limlib.api.effects.post.EmptyPostEffect; import net.ludocrypt.limlib.api.effects.post.PostEffect; @@ -33,5 +35,6 @@ public void onInitialize(ModContainer mod) { Registry.register(PostEffect.POST_EFFECT_CODEC, new Identifier("limlib", "static"), StaticPostEffect.CODEC); Registry.register(PostEffect.POST_EFFECT_CODEC, new Identifier("limlib", "empty"), EmptyPostEffect.CODEC); + QuiltLoader.getEntrypoints(LimlibRegistrar.ENTRYPOINT_KEY, LimlibRegistrar.class).forEach(LimlibRegistrar::registerHooks); } }