GabrielOlvH / Bodies-Bodies

No more items despawning, if you die, your dead body will lay on the cold hard ground waiting for you.
Other
2 stars 3 forks source link

Crashes due to trinkets - world loads then 5 seconds later crashes or gets stuck on the loading screen #10

Open Worm922 opened 8 months ago

Worm922 commented 8 months ago

---- Minecraft Crash Report ---- // Hi. I'm Minecraft, and I'm a crashaholic.

Time: 2024-03-23 11:10:37 Description: Rendering entity in world

java.lang.NullPointerException: Cannot invoke "dev.emi.trinkets.api.TrinketInventory.method_5438(int)" because "stacks" is null at me.steven.bodiesbodies.compat.TrinketsDeadBodyData.offer(TrinketsDeadBodyData.java:66) at me.steven.bodiesbodies.compat.TrinketsDeadBodyData.lambda$transferTo$3(TrinketsDeadBodyData.java:57) at java.base/java.util.HashMap.forEach(HashMap.java:1421) at me.steven.bodiesbodies.compat.TrinketsDeadBodyData.lambda$transferTo$4(TrinketsDeadBodyData.java:55) at java.base/java.util.HashMap.forEach(HashMap.java:1421) at me.steven.bodiesbodies.compat.TrinketsDeadBodyData.lambda$transferTo$5(TrinketsDeadBodyData.java:54) at java.base/java.util.Optional.ifPresent(Optional.java:178) at me.steven.bodiesbodies.compat.TrinketsDeadBodyData.transferTo(TrinketsDeadBodyData.java:53) at me.steven.bodiesbodies.entity.DeadBodyEntityRenderer.render(DeadBodyEntityRenderer.java:70) at me.steven.bodiesbodies.entity.DeadBodyEntityRenderer.method_3936(DeadBodyEntityRenderer.java:28) at net.minecraft.class_898.method_3954(class_898.java:145) at net.minecraft.class_761.method_22977(class_761.java:1574) at net.minecraft.class_761.method_22710(class_761.java:1324) at net.minecraft.class_757.method_3188(class_757.java:1110) at net.minecraft.class_757.method_3192(class_757.java:880) at net.minecraft.class_310.method_1523(class_310.java:1219) at net.minecraft.class_310.method_1514(class_310.java:802) at net.minecraft.client.main.Main.main(Main.java:250) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470) at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

A detailed walkthrough of the error, its code path and all known details is as follows:

-- Head -- Thread: Render thread Stacktrace: at me.steven.bodiesbodies.compat.TrinketsDeadBodyData.offer(TrinketsDeadBodyData.java:66) at me.steven.bodiesbodies.compat.TrinketsDeadBodyData.lambda$transferTo$3(TrinketsDeadBodyData.java:57) at java.base/java.util.HashMap.forEach(HashMap.java:1421) at me.steven.bodiesbodies.compat.TrinketsDeadBodyData.lambda$transferTo$4(TrinketsDeadBodyData.java:55) at java.base/java.util.HashMap.forEach(HashMap.java:1421) at me.steven.bodiesbodies.compat.TrinketsDeadBodyData.lambda$transferTo$5(TrinketsDeadBodyData.java:54) at java.base/java.util.Optional.ifPresent(Optional.java:178) at me.steven.bodiesbodies.compat.TrinketsDeadBodyData.transferTo(TrinketsDeadBodyData.java:53) at me.steven.bodiesbodies.entity.DeadBodyEntityRenderer.render(DeadBodyEntityRenderer.java:70) at me.steven.bodiesbodies.entity.DeadBodyEntityRenderer.method_3936(DeadBodyEntityRenderer.java:28) at net.minecraft.class_898.method_3954(class_898.java:145) at net.minecraft.class_761.method_22977(class_761.java:1574) at net.minecraft.class_761.method_22710(class_761.java:1324) at net.minecraft.class_757.method_3188(class_757.java:1110)

-- Entity being rendered -- Details: Entity Type: bodiesbodies:dead_body (me.steven.bodiesbodies.entity.DeadBodyEntity) Entity ID: 10565 Entity Name: entity.bodiesbodies.dead_body Entity's Exact location: -619.96, 67.80, 1575.92 Entity's Block location: World: (-620,67,1575), Section: (at 4,3,7 in -39,4,98; chunk contains blocks -624,-64,1568 to -609,319,1583), Region: (-2,3; contains chunks -64,96 to -33,127, blocks -1024,-64,1536 to -513,319,2047) Entity's Momentum: 0.00, 0.00, 0.00 Entity's Passengers: [] Entity's Vehicle: null Stacktrace: at net.minecraft.class_898.method_3954(class_898.java:145) at net.minecraft.class_761.method_22977(class_761.java:1574) at net.minecraft.class_761.method_22710(class_761.java:1324) at net.minecraft.class_757.method_3188(class_757.java:1110) at net.minecraft.class_757.method_3192(class_757.java:880) at net.minecraft.class_310.method_1523(class_310.java:1219) at net.minecraft.class_310.method_1514(class_310.java:802) at net.minecraft.client.main.Main.main(Main.java:250) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470) at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

-- Renderer details -- Details: Assigned renderer: me.steven.bodiesbodies.entity.DeadBodyEntityRenderer@4f35c0d5 Location: -33.16,-5.82,57.28 - World: (-34,-6,57), Section: (at 14,10,9 in -3,-1,3; chunk contains blocks -48,-64,48 to -33,319,63), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,-64,0 to -1,319,511) Rotation: 0.0 Delta: 0.2400589 Stacktrace: at net.minecraft.class_898.method_3954(class_898.java:145) at net.minecraft.class_761.method_22977(class_761.java:1574) at net.minecraft.class_761.method_22710(class_761.java:1324) at net.minecraft.class_757.method_3188(class_757.java:1110) at net.minecraft.class_757.method_3192(class_757.java:880) at net.minecraft.class_310.method_1523(class_310.java:1219) at net.minecraft.class_310.method_1514(class_310.java:802) at net.minecraft.client.main.Main.main(Main.java:250) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470) at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

-- Affected level -- Details: All players: 1 total; [class_746['Worm922'/10486, l='ClientLevel', x=-586.80, y=72.00, z=1518.63]] Chunk stats: 441, 249 Level dimension: minecraft:overworld Level spawn location: World: (96,75,48), Section: (at 0,11,0 in 6,4,3; chunk contains blocks 96,-64,48 to 111,319,63), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511) Level time: 10796555 game time, 11977865 day time ... (11 lines left)