[Bug] Cannot invoke "net.minecraft.class_239.method_17783()" because "trace" is null #101
Closed
1 task done
Labels
type: bug
Something isn't working
Minecraft Version
1.20.1
MasaGadget Version
3.2.318 67ab5b4-stable
Description
Crash happens commonly when logging in with 1.20.1 with tweakeroo.
Tweakeroo's
RayTraceUtils.getRayTraceFromEntity
is marked@Nonnull
.RenderUtils
uses this method to gettrace
, but MasaGadgets redirects this to a cached version, which is nullable. This caused the crash.Possible fix is to use
BlockHitResult.createMissed(Vec3d.ZERO, Direction.UP, BlockPos.ORIGIN);
instead of null, which is whatRayTraceUtils.getRayTraceFromEntity
uses for misses.To Reproduce
Not sure exactly, it seems to happen commonly though
Expected behavior
No crash
Log
https://mclo.gs/KMDPIk7
Latest CI build tested
The text was updated successfully, but these errors were encountered: