Skip to content

Commit 3053523

Browse files
committed
feat: postpone recipe loading
1 parent 7dcab4a commit 3053523

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ dependencies {
2525
compileOnly(kotlin("stdlib")) // loaded through library loader
2626
compileOnly(kotlin("reflect")) // loaded through library loader
2727
compileOnlyAndTestImpl("io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT")
28-
compileOnlyAndTestImpl("com.github.Slimefun:Slimefun4:3ea21da4fe")
28+
compileOnlyAndTestImpl("com.github.Slimefun:Slimefun4:5374034c87")
2929
compileOnly("net.guizhanss:SlimefunTranslation:e03b01a7b7")
3030
compileOnly("com.github.schntgaispock:SlimeHUD:1.3.0")
3131
compileOnly("com.github.SlimefunGuguProject:InfinityExpansion:bebf0bd0f9")
3232
compileOnly("com.github.VoperAD:SlimeFrame:8af2379a01")
3333
implementation("org.bstats:bstats-bukkit:3.1.0")
34-
implementation("net.guizhanss:guizhanlib-all:2.3.0-SNAPSHOT")
35-
implementation("net.guizhanss:guizhanlib-kt-all:0.1.0-SNAPSHOT")
34+
implementation("net.guizhanss:guizhanlib-all:2.4.0-SNAPSHOT")
35+
implementation("net.guizhanss:guizhanlib-kt-all:0.2.0-SNAPSHOT")
3636

3737
testImplementation(kotlin("test"))
3838
testImplementation("org.mockbukkit.mockbukkit:mockbukkit-v1.21:4.10.0")

src/main/kotlin/net/guizhanss/fastmachines/implementation/listeners/SlimefunRegistryListener.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import io.github.thebusybiscuit.slimefun4.api.events.SlimefunItemRegistryFinaliz
44
import net.guizhanss.fastmachines.FastMachines
55
import net.guizhanss.fastmachines.core.FMRegistry
66
import org.bukkit.event.EventHandler
7+
import org.bukkit.event.EventPriority
78
import org.bukkit.event.Listener
89
import java.util.logging.Level
910

@@ -13,7 +14,7 @@ class SlimefunRegistryListener(plugin: FastMachines) : Listener {
1314
plugin.server.pluginManager.registerEvents(this, plugin)
1415
}
1516

16-
@EventHandler
17+
@EventHandler(priority = EventPriority.MONITOR)
1718
fun onRegistryLoaded(e: SlimefunItemRegistryFinalizedEvent) {
1819
for (machine in FMRegistry.enabledFastMachines) {
1920
FastMachines.debug("Registering recipes for ${machine.javaClass.simpleName}")

0 commit comments

Comments
 (0)