Untamed Wilds

Untamed Wilds

8M Downloads

1.18.2-1.2.3 Crash: 'bear sound is null'

ThatGuyJess opened this issue ยท 2 comments

commented

Hello!

First I want to say I love this mod and appreciate the work you put into it! I am planning on donating something soon as a thank you gift.

Here's the scoop:

The mod crashes due to "Entity Type: untamedwilds:bear" ticking. It states below that despite the fix you made (which seemed to work for the mob(s?) that previously had this issue for my server, my friends, and I) there may still be some mobs that have the sound null issue:

"The game crashed whilst ticking entity
Error: java.lang.NullPointerException: Cannot invoke "net.minecraft.sounds.SoundEvent.m_11660_()" because "sound" is null
Exit Code: -1"

Crash Log

<script src="https:////paste-bin.xyz/embed/60982"></script>

What I did when it crashed:

I'm sure you're aware of this already, but just in case you want it regardless:
It crashed when I was running for my life, (like the brave and courageous hero that I am) and entered an area where bears could spawn.

  • Minecraft version: 1.18.2
  • Version of the mod: 2.1.3
  • Additional mods:
    I do not believe it was a compatibility issue but just in case here are my mods (if you would like a .zip file to play this client and server side, let me know :) , I recommend it with my config files):

<script src="https:////paste-bin.xyz/embed/60986"></script>

commented

The fix applied to the "death" and "hurt" sounds, where I avoid the problem by using a generic sound whenever one is undefined. Didn't do the same thing with "ambient" sounds, because there is no generic ambient sounds, and it never gave any problems

It was my impression that the "ambient" sounds were handled differently and accounted for the chance that the sound was null, but clearly that's not the case. Pretty easy to fix however

commented

We're just about to delete the mod until it updates again. This crash has everyone disappointed on our server since there are so many nice, ambient mobs. Would greatly appreciate a fix for this! (1.18.2)