Skip to content

Commit

Permalink
Fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzcanyilmazlar committed May 5, 2022
1 parent aa605fc commit f928b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/me/acablade/bladeapi/AbstractGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public final void disable(){
*/
protected final void tick(){
if(getCurrentPhase()!=null)getCurrentPhase().tick();
if(!frozen&&getCurrentPhase().timeLeft().isZero()) endPhase();
if(!frozen&&(getCurrentPhase()!=null&&getCurrentPhase().timeLeft().isZero())) endPhase();
onTick();
}

Expand Down

0 comments on commit f928b37

Please # to comment.