When i run the game particles crash the game, im not sure what am i doing wrong because the program doesnt tell me. But i know particles are causing this , if i remove the code in update code at bottom, the runnable jar works fine.
Particle class : http://pastebin.com/ATLN6qzR
Particle manager : http://pastebin.com/vAk1nwmi
Slick 2d docmentation : http://www.slick2d.org/javadoc/
It says error is here where the for starts
public void update(int delta){
for (Particle o: particleList) {
if(o.emitter.completed() == true){
particleList.remove(o);
}
else{
o.system.update(delta);
}
}
}