added check for removeattackpart so that it shouldn't crash.

This commit is contained in:
no 2021-06-20 18:37:03 +02:00
parent ebf4c198ad
commit 24d1438801

View File

@ -216,7 +216,7 @@ public class Character extends Entity {
* which indicates the character has moved on to the next one
*/
public void removeFirstAttackPart() {
this.nextAttackParts.remove(0);
if(this.nextAttackParts.size() > 0) {this.nextAttackParts.remove(0);}
}
public ArrayList<ThrowPart> getNextThrowParts() {