From 2327859b21debafa860a517d16dcb3bf03c4e2d2 Mon Sep 17 00:00:00 2001 From: no Date: Tue, 15 Jun 2021 23:54:12 +0200 Subject: [PATCH] removed a try catch in nextFramesBuffer.goToNext() that should resolve some issues. --- src/gameplay/frames/nextFrameBuffer.java | 6 +++--- src/gameplay/match/match.java | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gameplay/frames/nextFrameBuffer.java b/src/gameplay/frames/nextFrameBuffer.java index 044174c..40979f8 100644 --- a/src/gameplay/frames/nextFrameBuffer.java +++ b/src/gameplay/frames/nextFrameBuffer.java @@ -40,15 +40,15 @@ public class nextFrameBuffer { } public void goToNext() { - try { + //try { nextFrameBuffer nfb = new nextFrameBuffer(); nfb.clone(this.next); this.current = this.next.current; this.next.clone(nfb); - } catch (NullPointerException n) { + /*} catch (NullPointerException n) { this.setCurrentFrame(null); this.setNext(new nextFrameBuffer()); - } + }*/ } public Frame getCurrentFrame() { diff --git a/src/gameplay/match/match.java b/src/gameplay/match/match.java index bb4541d..d2f1b10 100644 --- a/src/gameplay/match/match.java +++ b/src/gameplay/match/match.java @@ -486,6 +486,7 @@ public class match { c.setStatus(Status.KNOCKEDDOWN); c.addNextFrames(c.getKnockedDownFrames()); } + break; default: c.setStatus(Status.NORMAL); if(in.getLatestInputs().containsInput(ButtonIG.DOWN)) {