Drip Sounds (Forge)

Drip Sounds (Forge)

292k Downloads

[Crash] NPE: Registry Object not present: waterdripsound:lavadrip

PieKing1215 opened this issue ยท 1 comments

commented

from https://www.curseforge.com/minecraft/mc-mods/waterdripsound?comment=11

only happens on multiplayer when the client has the mod but the server doesn't
no other mods necessary

java.lang.NullPointerException: Registry Object not present: waterdripsound:lavadrip
	at java.util.Objects.requireNonNull(Objects.java:290) ~[?:1.8.0_51] {}
	at net.minecraftforge.fml.RegistryObject.get(RegistryObject.java:120) ~[?:?] {re:mixin,re:classloading}
	at net.minecraft.client.particle.DripParticle$LandingLavaFactory.handler$zhp001$createParticle(SourceFile:529) ~[?:?]

(basically WaterDripSound.LAVA_DRIP_SOUND.get() returns null)
the line that the crash happens on:

clientWorld.playSound(x, y, z, WaterDripSound.LAVA_DRIP_SOUND.get(), SoundCategory.AMBIENT, vol, 1f + (float)(Math.random() * 0.1f), false);

commented

v0.2.1 has a temporary workaround that prevents the crash but doesn't actually "fix" the problem