Why wont this shitty code work?
>>56009314
Every other time i run the code it throws a "Exception in thread "AWT-EventQueue-0" java.util.ConcurrentModificationException" and sometimes it just werks without any errors
Sent you the fix in private message
nvm I fixed it
>>56009314
>posts only parts of shitty code
Uhh, tileList is never defined?
>>56009314(You)
>>56009340(You)
>>56009351(You)
>>56009364(You)
lol upvoted
>>56009314
>using an bunch of libraries nobody knows
>only posts part of code
Nobody will provide and annswer. Look elsewhere.
>>56009386
It's standard Java Graphics2D by the looks of it.
Try replacing your for-in loop with a standard loop. Usually you get that sort error when your iterating through a collection and removing a member. I can't see that happening, but it might be worth looking at.
>>56009314
Post the whole code
>>56009439
Really nothing else to see, just some boiler plate code
>>56009420
Do this please OP, and tell me the results.
Replace, in the draw() call:for(int i = 0; i < tileList.length; i++) {
tileList.get(i).draw(g);
}
I'm probably wrong, but mayb, if the draw() is called in a different thread - since it's event based - and you're editing the tileList at the same time, that for in will fug you up