StavWasPlayZ / Even-More-Instruments

Add even more instruments to your Minecraft experience!
https://curseforge.com/minecraft/mc-mods/even-more-instruments
GNU General Public License v3.0
1 stars 2 forks source link

[CRASH] Infinite recursive call on LooperBlockEntity function #10

Closed StavWasPlayZ closed 2 months ago

StavWasPlayZ commented 4 months ago

Hello there! Stumbled upon your mods when was making a modpack to play with my friends Everything was fine until my friend decided to test out each and every function the mods have and placed a looper. The world had crashed with no chance to fix (without deleting the mod, that is). Then I decided to try out myself and also got a crash. Beside that, I have a log now, which I hereby show you: crash-2024-07-04_00.24.23-server.txt I hope there is a chance to fix this, because my friend really liked this mod and I don't want to exclude it from the modpack.

Originally posted by @1Knightey1 in https://github.com/StavWasPlayZ/Even-More-Instruments/issues/7#issuecomment-2207382760

StavWasPlayZ commented 4 months ago

RE:

Hey there! Thank you for your report.

I see the version you are playing is 1.20.4. Could you perhaps try to reproduce the issue in Minecraft 1.20.1? It might be possible I did not test enough for this specific version.

Further, could I ask if you have ever migrated the mod from any previous versions of it?

Nevertheless, I shall further delve into this issue when I'm more free, perhaps next week or so. Waiting for your update, and apologies for the inconvenience!

StavWasPlayZ commented 4 months ago

Actually... I understood the issue. I'm just kinda dumb.

Note for self:

Problematic line

@Override
public ItemStack getTheItem() {
    // big no no
    //return getItem(0);
    return recordIn; // <-
}

If you're curious, the looper basically tried to figure out: "What's my current item?", and I just answered it "idk bro check your current item"

so it checked itself and itself and itself and itself...

...Will fix this once I issue Genshin Instruments v4.0. Should be around mid-July 😅

Again, very sorry for the inconvenience!

1Knightey1 commented 4 months ago

Hello, thank you for explaining what could be wrong! No, we never used your mods before (neither Fabric, to be honest), but I can try to recreate the issue on an older version, if you need to.

StavWasPlayZ commented 4 months ago

Yeah, I would actually greatly appreciate that!
Could you please let me know if such issue persists in either 1.20.2 or 1.20.1?

Thanks!

StavWasPlayZ commented 2 months ago

Should be fixed in v6.1, will release later today.