thetdw2000
-
Posts
8 -
Joined
-
Last visited
Posts posted by thetdw2000
-
-
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 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?
-
I have made a functional mod which keeps crashing due to a "ConcurrentModificationException" whenever I repeatedly use the Sonar items. The source is at GitHub here: https://github.com/thetdw2000/sonarmod
I suspect that it's caused by the SonarThread class, but I have no idea how to fix it or what's causing it.
-
I have a working mod for 1.12, but I want the player to have to wait for a certain period of time between uses. How would I accomplish this?
Link to GitHub: https://github.com/thetdw2000/sonarmod
-
On 2/8/2018 at 1:54 PM, Cesar Codes said:
Post your project on GitHub. There I can find any mistakes me, or you made in the code.
Here's the link:
https://github.com/thetdw2000/Modding
-
When I run this mod, Minecraft starts up and loads fine, but my mod is not listed in the mods menu. Am I missing something?
-
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.
ConcurrentModificationException
in Modder Support
Posted
So the EntityPlayer class is also not thread safe? Because I never played sounds from the World class.