-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot invoke "net.minecraft.class_1922.method_8320(net.minecraft.class_2338)" because "world" is null #3945
Comments
Duplicate of #3255 |
Was it fixed in #3255? |
Yes, it's supposed to be fixed. |
[21:21:11] [Render thread/INFO]: [CHAT] [Baritone] > mine diamond_ore I'm still getting it. |
Ok, if this is really happening on a "fixed" version (afaik there is no unfixed version for 1.19.4), can you please
|
I'll try removing mods, but for now, here is my latest log. |
@ZacSharp from the original log, (and the new one) this is a different bug...
which is related to a different list of issues (ie. carpetmod forks like RubixDev/Rug#44) now @EvilEpicPanda , there are legitimate reasons to get the world in a mod. so it may stay incompatible. but if we figure out which mod it is, that would be very useful. the fastest way to do so is:
|
Yeah, I pretty much stopped when I saw that the error message was identical and the stack trace was obfuscated baritone names Looking at the log I think Interference (added by Redbits) is the problem. They have a mixin which unconditionally uses the world and position parameters (Baritone passes null for both when checking tool speed) to obtain the blockstate at that position and then decide whether it has dynamic hardness. |
You sure its redbits? https://github.com/magistermaks/mod-redbits/tree/master/src%2Fmain%2Fjava%2Fnet%2Fdarktree%2Fredbits%2Fmixin not seeing a mixin here |
Ahh. I see... well... one things redundant there. but wont be fixable in all cases. MutableHardness is lazy imo, could just make a block state for each hardness level desired, at least as long as it would only change when the block would get an update tick anyway |
Maybe, but the nasty party here is definitely us. We're passing null for nonnull parameters and not even catching the exception. |
Just noticed (from the pr mentioned in the Rug issue mentioned above) that Interference is also just getting |
Some information
Operating system: Windows 10
Java version: 17
Minecraft version: 1.19.2
Baritone version: 1.9.4
Other mods (if used): Prominence Fabric Modpack
Exception, error or logs
Uncaught exception in thread "pool-9-thread-3"
java.lang.NullPointerException: Cannot invoke "net.minecraft.class_1922.method_8320(net.minecraft.class_2338)" because "world" is null
at net.minecraft.class_4970$class_4971.handler$hlc000$interference$getHardness(class_4970.java:5653) ~[client-intermediary.jar:?]
at net.minecraft.class_4970$class_4971.method_26214(class_4970.java) ~[client-intermediary.jar:?]
at baritone.jp.a(Unknown Source) ~[baritone-standalone-fabric-1.9.4.jar:?]
at baritone.jp.a(Unknown Source) ~[baritone-standalone-fabric-1.9.4.jar:?]
at baritone.jp.a(Unknown Source) ~[baritone-standalone-fabric-1.9.4.jar:?]
at java.util.function.Function.lambda$compose$0(Unknown Source) ~[?:?]
at java.util.HashMap.computeIfAbsent(Unknown Source) ~[?:?]
at baritone.jp.a(Unknown Source) ~[baritone-standalone-fabric-1.9.4.jar:?]
at baritone.gp.a(Unknown Source) ~[baritone-standalone-fabric-1.9.4.jar:?]
at baritone.iv.a(Unknown Source) ~[baritone-standalone-fabric-1.9.4.jar:?]
at baritone.iv.d(Unknown Source) ~[baritone-standalone-fabric-1.9.4.jar:?]
at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) ~[?:?]
at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) ~[?:?]
at java.util.stream.DistinctOps$1$2.accept(Unknown Source) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:?]
at java.util.stream.ReferencePipeline.collect(Unknown Source) ~[?:?]
at baritone.iv.a(Unknown Source) ~[baritone-standalone-fabric-1.9.4.jar:?]
at baritone.iv.a(Unknown Source) ~[baritone-standalone-fabric-1.9.4.jar:?]
at baritone.iv.a(Unknown Source) ~[baritone-standalone-fabric-1.9.4.jar:?]
at baritone.iv.b(Unknown Source) ~[baritone-standalone-fabric-1.9.4.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[?:?]
at java.lang.Thread.run(Unknown Source) [?:?]
How to reproduce
Use modpack
Try to #mine
Modified settings
None
Final checklist
latest.log
The text was updated successfully, but these errors were encountered: