Skip to content

Commit 4a447e5

Browse files
authored
Merge pull request #563 from rfresh2/baritone-troll
prevent baritone troll crashes
2 parents ba9ecad + d7c9c76 commit 4a447e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/kotlin/com/lambda/client/LambdaMod.kt

+5
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ class LambdaMod {
6363
fun init(event: FMLInitializationEvent) {
6464
LOG.info("Initializing $NAME $VERSION")
6565

66+
// load this class so that baritone doesn't crash
67+
// see https://github.com/cabaletta/baritone/issues/3859
68+
@Suppress("UNUSED_VARIABLE")
69+
val baritoneTroll = baritone.api.utils.BetterBlockPos::class.java
70+
6671
LoaderWrapper.loadAll()
6772

6873
MinecraftForge.EVENT_BUS.register(ForgeEventProcessor)

0 commit comments

Comments
 (0)