Code Monkey home page Code Monkey logo

Comments (10)

juliand665 avatar juliand665 commented on July 29, 2024

Ooh, thanks for identifying a cause for this error! Unfortunately, this error being thrown means the player's food data has already been lost. The hope is that crashing will make MC restore from a state where the data was still present, and the alternative would be just silently losing all food data.

It's annoying that this makes it look like our mod is at fault, because I'm pretty sure it's not, but I don't think there's a better option for us?

from spice-of-life-carrot-edition.

TristonWasik avatar TristonWasik commented on July 29, 2024

How is a food list data connected to the player? if a player dies it seems to not be attached to that player until they hit respawn, is there a way around that, as that could be a fix. (i'm not really sure how minecraft handles death events, or how ya'll are utilizing them).

At this point, the mod hard locks out any player from joining the game due to a corrupted player state, i think a warning for the player and wiping their food list would be far more optimal than what it is currently doing. The only way to fix it currently is to completely wipe out the playerdata so it's no longer corrupted, at which they're losing everything on them and a lot of other progress.

from spice-of-life-carrot-edition.

juliand665 avatar juliand665 commented on July 29, 2024

Hm, actually you might be onto something there. I didn't really stop to think about it, but this might be reproducible with just our mod. If a player dies on a server, leaves instead of respawning, and then logs back in, that may well cause this to be thrown. That would also explain other unexplained Heisenbug reports.

from spice-of-life-carrot-edition.

 avatar commented on July 29, 2024

Hi this happens to me when I added SoL to my vanilla world

from spice-of-life-carrot-edition.

 avatar commented on July 29, 2024

Seems my character was logged out while dead before I added the mod.

from spice-of-life-carrot-edition.

border999 avatar border999 commented on July 29, 2024

@juliand665 I have played with this mod for awhile. It only has this issue when the player dies. It also prevents the player from logging back into the world. I play on a singleplayer world that is not open to lan mind you. The mod modifies the value for a players health and seemingly is forgetting that value upon player death. I did not get a chance to hit the respawn button. The world closed the moment I died and I am unable to log back in. The only way I've found to fix this is to close the game remove this mod, then reopen the game and then the world.

from spice-of-life-carrot-edition.

border999 avatar border999 commented on July 29, 2024

@Elfinslayer as I say above. You can get back into the world without wiping the player's data by removing the mod and opening the world without it in. The world will allow you in and then you can readd the mod.

from spice-of-life-carrot-edition.

TristonWasik avatar TristonWasik commented on July 29, 2024

@border999 Yea I saw your reply. It's nice to have an alternative fix but unfortunately that's still not a reasonable long term solution. They know about the issue and seem to be planning on fixing it, until then we'll just avoid packs with SoL. Thanks though!

from spice-of-life-carrot-edition.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.