added check for removeattackpart so that it shouldn't crash.
This commit is contained in:
parent
ebf4c198ad
commit
24d1438801
@ -216,7 +216,7 @@ public class Character extends Entity {
|
|||||||
* which indicates the character has moved on to the next one
|
* which indicates the character has moved on to the next one
|
||||||
*/
|
*/
|
||||||
public void removeFirstAttackPart() {
|
public void removeFirstAttackPart() {
|
||||||
this.nextAttackParts.remove(0);
|
if(this.nextAttackParts.size() > 0) {this.nextAttackParts.remove(0);}
|
||||||
}
|
}
|
||||||
|
|
||||||
public ArrayList<ThrowPart> getNextThrowParts() {
|
public ArrayList<ThrowPart> getNextThrowParts() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user