small changes in match to reduce crashes

This commit is contained in:
Azra Victor
2021-06-10 12:40:09 +02:00
committed by no
parent 93f5727569
commit 63ac95865a
3 changed files with 27 additions and 15 deletions

View File

@ -44,7 +44,7 @@ public class Frame {
this.moveCancellable = true;
this.isDashCancellable = true;
this.lastFrameOfHit = false;
this.sprite = new int[0];
this.sprite = new int[4];
}
public Frame(Double move_y, Double move_x, ArrayList<Passive_HitBox> passHitBox, ArrayList<Active_HitBox> actHitBox,

View File

@ -49,7 +49,9 @@ public class nextFrameBuffer {
}
public Frame getNextframe() {
return this.next.current;
try {
return this.next.current;
} catch(NullPointerException e) {return null;}
}
/**