diff options
Diffstat (limited to 'src/test/kotlin/io')
-rw-r--r-- | src/test/kotlin/io/github/moulberry/notenoughupdates/util/BootstrapHook.kt | 4 |
1 files changed, 3 insertions, 1 deletions
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() |