Baritone AI pathfinder

Baritone AI pathfinder

72.7k Downloads

Unhandled Exception - #mine diamond_ore

scopemannn opened this issue ยท 1 comments

commented

Some information

Operating system: Windows 10
Java version: build 1.8.0_333-b02
Minecraft version: 1.19.3
Baritone version: 1.19.3
Other mods (if used): n/a

Exception, error or logs

[06:31:32] [Render thread/INFO]: [System] [CHAT] [Baritone] > mine minecraft:diamond_ore
[06:31:32] [Render thread/INFO]: Reloading ResourceManager: vanilla
[06:31:32] [Render thread/INFO]: [System] [CHAT] [Baritone] An unhandled exception occurred. The error is in your game's log, please report this at https://github.com/cabaletta/baritone/issues
[06:31:32] [Render thread/INFO]: [STDERR]: baritone.api.command.exception.CommandUnhandledException: java.lang.NullPointerException: Cannot invoke "baritone.api.cache.IWorldData.getCachedWorld()" because the return value of "baritone.api.utils.IPlayerContext.worldData()" is null
[06:31:32] [Render thread/INFO]: [STDERR]: at baritone.command.manager.CommandManager.execute(Unknown Source)
[06:31:32] [Render thread/INFO]: [STDERR]: at baritone.command.ExampleBaritoneControl.a(Unknown Source)
[06:31:32] [Render thread/INFO]: [STDERR]: at baritone.command.ExampleBaritoneControl.onSendChatMessage(Unknown Source)
[06:31:32] [Render thread/INFO]: [STDERR]: at baritone.event.GameEventHandler.a(Unknown Source)
[06:31:32] [Render thread/INFO]: [STDERR]: at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:807)
[06:31:32] [Render thread/INFO]: [STDERR]: at baritone.event.GameEventHandler.onSendChatMessage(Unknown Source)
[06:31:32] [Render thread/INFO]: [STDERR]: at net.minecraft.class_634.handler$zzb000$sendChatMessage(class_634.java)
[06:31:32] [Render thread/INFO]: [STDERR]: at net.minecraft.class_634.method_45729(class_634.java)
[06:31:32] [Render thread/INFO]: [STDERR]: at net.minecraft.class_408.method_44056(class_408.java:253)
[06:31:32] [Render thread/INFO]: [STDERR]: at net.minecraft.class_408.method_25404(class_408.java:101)
[06:31:32] [Render thread/INFO]: [STDERR]: at net.minecraft.class_309.method_1454(class_309.java:371)
[06:31:32] [Render thread/INFO]: [STDERR]: at net.minecraft.class_437.method_25412(class_437.java:492)
[06:31:32] [Render thread/INFO]: [STDERR]: at net.minecraft.class_309.method_1466(class_309.java:367)
[06:31:32] [Render thread/INFO]: [STDERR]: at net.minecraft.class_309.method_22678(class_309.java:455)
[06:31:32] [Render thread/INFO]: [STDERR]: at net.minecraft.class_1255.execute(class_1255.java:102)
[06:31:32] [Render thread/INFO]: [STDERR]: at net.minecraft.class_309.method_22676(class_309.java:455)
[06:31:32] [Render thread/INFO]: [STDERR]: at org.lwjgl.glfw.GLFWKeyCallbackI.callback(GLFWKeyCallbackI.java:44)
[06:31:32] [Render thread/INFO]: [STDERR]: at org.lwjgl.system.JNI.invokeV(Native Method)
[06:31:32] [Render thread/INFO]: [STDERR]: at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3403)
[06:31:32] [Render thread/INFO]: [STDERR]: at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:197)
[06:31:32] [Render thread/INFO]: [STDERR]: at net.minecraft.class_1041.method_15998(class_1041.java:310)
[06:31:32] [Render thread/INFO]: [STDERR]: at net.minecraft.class_310.method_1523(class_310.java:1222)
[06:31:32] [Render thread/INFO]: [STDERR]: at net.minecraft.class_310.method_1514(class_310.java:781)
[06:31:32] [Render thread/INFO]: [STDERR]: at net.minecraft.client.main.Main.method_44604(Main.java:244)
[06:31:32] [Render thread/INFO]: [STDERR]: at net.minecraft.client.main.Main.main(Main.java:51)
[06:31:32] [Render thread/INFO]: [STDERR]: at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461)
[06:31:32] [Render thread/INFO]: [STDERR]: at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
[06:31:32] [Render thread/INFO]: [STDERR]: at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
[06:31:32] [Render thread/INFO]: [STDERR]: Caused by: java.lang.NullPointerException: Cannot invoke "baritone.api.cache.IWorldData.getCachedWorld()" because the return value of "baritone.api.utils.IPlayerContext.worldData()" is null
[06:31:32] [Render thread/INFO]: [STDERR]: at baritone.cache.WorldScanner.repack(Unknown Source)
[06:31:32] [Render thread/INFO]: [STDERR]: at baritone.cache.WorldScanner.repack(Unknown Source)
[06:31:32] [Render thread/INFO]: [STDERR]: at baritone.command.defaults.MineCommand.execute(Unknown Source)
[06:31:32] [Render thread/INFO]: [STDERR]: ... 28 more

How to reproduce

Near bedrock in regular world, #mine diamond_ore not working

Modified settings

No modifications

Final checklist

  • I know how to properly use check boxes
  • I have included the version of Minecraft I'm running, baritone's version and forge mods (if used).
  • I have included logs, exceptions and / or steps to reproduce the issue.
  • I have not used any OwO's or UwU's in this issue.
commented

Already fixed on the latest version for 1.19.3