mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-08 17:33:01 +00:00
Update to 1.19.4 (#1376)
This commit is contained in:
@@ -40,7 +40,7 @@ class Recipe_Test {
|
||||
.getRecipeFor(RecipeType.CRAFTING, container, context.level)
|
||||
if (!recipe.isPresent) throw GameTestAssertException("No recipe matches")
|
||||
|
||||
val result = recipe.get().assemble(container)
|
||||
val result = recipe.get().assemble(container, context.level.registryAccess())
|
||||
|
||||
val owner = CompoundTag()
|
||||
owner.putString("Name", "dan200")
|
||||
|
||||
@@ -6,6 +6,7 @@ import dan200.computercraft.gametest.api.setupForTest
|
||||
import net.minecraft.client.CloudStatus
|
||||
import net.minecraft.client.Minecraft
|
||||
import net.minecraft.client.ParticleStatus
|
||||
import net.minecraft.client.gui.screens.AccessibilityOnboardingScreen
|
||||
import net.minecraft.client.gui.screens.Screen
|
||||
import net.minecraft.client.gui.screens.TitleScreen
|
||||
import net.minecraft.client.tutorial.TutorialSteps
|
||||
@@ -49,7 +50,7 @@ object ClientTestHooks {
|
||||
|
||||
@JvmStatic
|
||||
fun onOpenScreen(screen: Screen): Boolean = when {
|
||||
enabled && !loadedWorld && screen is TitleScreen -> {
|
||||
enabled && !loadedWorld && (screen is TitleScreen || screen is AccessibilityOnboardingScreen) -> {
|
||||
loadedWorld = true
|
||||
openWorld()
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user