LeoBeliik / ExtremeSoundMuffler

Muffle those nasty sounds - Client side sound Muffler
GNU Lesser General Public License v3.0
20 stars 9 forks source link

Log spam: [Extreme Sound Muffler/]: ESM: Muffled list not found; Creating empty Muffled list #66

Closed aaronhowser1 closed 10 months ago

aaronhowser1 commented 10 months ago

Extreme sound muffler version

extremesoundmuffler-3.30_forge-1.18.2

Forge / Fabric version

40.2.14

Additional mod(s) version (If bug is due incompatibility)

No response

Describe the bug

image

I keep getting that spammed. Strangely enough, it always happens after my KubeJS script (which is triggered by the EntityJoinWorldEvent) logs something. Maybe it's getting triggered by the same event?

Steps to reproduce

No response

Crashlog

https://gist.github.com/aaronhowser1/a34a826cc3d1ec7c8a6ba0eb23c9087f

Additional context

The KubeJS script:

if (Platform.mods.sdrp) {
    onForgeEvent(
        'net.minecraftforge.event.entity.EntityJoinWorldEvent',
        (event) => {
            if (!event.getWorld().isClientSide()) return
            if (event.getEntity().type !== 'entity.minecraft.player') return
            const dimPath = event.getWorld().dimension().location().getPath()
            console.log(dimPath)
            SDRP.setState(`sdrp.${dimPath}.in`, `sdrp.${dimPath}`, 'dimPath')
        }
    )
}
aaronhowser1 commented 10 months ago

image It also doesn't actually create the file. I don't have an /ESM/ folder at all

LeoBeliik commented 10 months ago

Yes, this was fixed in new versions, it just never landed to 1.18 and unfortunately I can't backport it. It doesn't create a folder because it doesn't need to, which makes the log spamming everytime a player joins the world, to fix it simply open and close the muffler screen once and it should create the folder and files it needs to stop spamming this. Sorry for that!