Jump to content

thetdw2000

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by thetdw2000

  1. 7 minutes ago, diesieben07 said:

    You are playing sounds from the SonarThread as well. If you do things from multiple threads but you are interacting with non thread-safe code, any number of things can happen. In your case playing the sound from the SonarThread causes the crash when the main thread tries to play sound as well.

    So the EntityPlayer class is also not thread safe? Because I never played sounds from the World class.

  2. Just now, diesieben07 said:

    Minecraft's code is not thread safe.

    You cannot access the world from other threads. If you need to, you need to copy the world data somewhere else in the main thread and then hand over that copy to the other thread.

    I get that, but that still doesn't explain why it's crashing when it doesn't start a thread (when the player doesn't have coal). Why is that happening?

  3. 3 hours ago, diesieben07 said:

    The sonar mod is completely broken. They are accessing the world from a separate thread. They need to fix their mod.

    That didn't seem to be the problem before; I could access the world from the separate thread before I added in the sounds. Is there some taboo about doing this? If so, what is the preferred method?

  4. When I try to open MDKExample in Eclipse, it gives me the message

    The project description file (.project) for 'MDKExample' is missing.  This file contains important information about the project.  The project will not function properly until this file is restored.

    Did I do something wrong?

    Edit: Forgot the eclipse from the .bat file. I just ran gradlew setupDecompWorkspace.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.