small changes in match to reduce crashes
This commit is contained in:
@ -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,
|
||||
|
@ -49,7 +49,9 @@ public class nextFrameBuffer {
|
||||
}
|
||||
|
||||
public Frame getNextframe() {
|
||||
return this.next.current;
|
||||
try {
|
||||
return this.next.current;
|
||||
} catch(NullPointerException e) {return null;}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user