From afd3f0f861ebe7f8957eb6abc6e19f92c7b5896a Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Fri, 12 Apr 2024 14:32:41 +0200 Subject: Add in-game updater (#1050) Co-authored-by: IRONM00N <64110067+IRONM00N@users.noreply.github.com> --- .../kotlin/io/github/moulberry/notenoughupdates/util/BootstrapHook.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/test/kotlin/io') diff --git a/src/test/kotlin/io/github/moulberry/notenoughupdates/util/BootstrapHook.kt b/src/test/kotlin/io/github/moulberry/notenoughupdates/util/BootstrapHook.kt index cab10aaa..7aea2ca6 100644 --- a/src/test/kotlin/io/github/moulberry/notenoughupdates/util/BootstrapHook.kt +++ b/src/test/kotlin/io/github/moulberry/notenoughupdates/util/BootstrapHook.kt @@ -23,6 +23,7 @@ import net.minecraft.block.Block import net.minecraft.block.BlockFire import net.minecraft.init.Bootstrap import net.minecraft.item.Item +import net.minecraft.launchwrapper.Launch import org.junit.jupiter.api.extension.BeforeAllCallback import org.junit.jupiter.api.extension.Extension import org.junit.jupiter.api.extension.ExtensionContext @@ -40,7 +41,8 @@ class BootstrapHook : BeforeAllCallback, Extension { try { if (!bootstrapped) { bootstrapped = true - + Launch.blackboard = HashMap() + Launch.blackboard.put("fml.deobfuscatedEnvironment", true) Bootstrap::class.java.getDeclaredField("alreadyRegistered").also { it.isAccessible = true } .set(null, true) Block.registerBlocks() -- cgit