CleanroomMC / InventoryBogoSorter

A rewrite of the popular Inventory Tweaks mod
GNU Lesser General Public License v3.0
11 stars 9 forks source link

Sorting crash every time `SortHandler.playSortSound` #73

Closed Krutoy242 closed 3 weeks ago

Krutoy242 commented 5 months ago

Happens not to me but to other player of E2E-E modpack.

It is crashing when using the inventory sort function. Doesn't happen every time but i'd say atleast 50% of the time.

java.lang.NullPointerException: Updating screen events
at net.minecraft.client.audio.PositionedSoundRecord.<init>(SourceFile:34)
at net.minecraft.client.audio.PositionedSoundRecord.getRecord(SourceFile:18)
at net.minecraft.client.audio.PositionedSoundRecord.getMasterRecord(SourceFile:14)
at com.cleanroommc.bogosorter.common.sort.SortHandler.playSortSound(SortHandler.java:41)
at com.cleanroommc.bogosorter.ClientEventHandler.sort(ClientEventHandler.java:267)
at com.cleanroommc.bogosorter.ClientEventHandler.handleInput(ClientEventHandler.java:199)
at com.cleanroommc.bogosorter.ClientEventHandler.onMouseInput(ClientEventHandler.java:142)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_3018_ClientEventHandler_onMouseInput_Pre.invoke(.dynamic)

https://mclo.gs/AY32a3Z

brachy84 commented 5 months ago

This is probably because of april fools and the scuffed way it was written