Skip to content

Commit

Permalink
cursor moved & resources config banned
Browse files Browse the repository at this point in the history
  • Loading branch information
UltimateHikari committed Nov 5, 2021
1 parent 42df31c commit 7a24989
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/me/hikari/snakeclient/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ public static GameConfig parseConfig() throws IOException {
public static void main(String[] args) throws IOException {
if (args.length > 0) {
formConfigPath(args[0]);
}else{
log.info("No config provided");
System.exit(-1);
}
var config = parseConfig();
Tui tui = new Tui(config.getKeyConfig());
Expand Down
1 change: 1 addition & 0 deletions src/main/java/me/hikari/snakeclient/tui/GameScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,6 @@ private void drawFooter(TextGraphics tg, String error) {
} else {
tg.putString(TuiUtils.center(pos, size, footer.length()), footer);
}
screen.setCursorPosition(TuiUtils.shift(pos, 0));
}
}
1 change: 1 addition & 0 deletions src/main/java/me/hikari/snakeclient/tui/MainScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,6 @@ private void drawFooter(TextGraphics tg) {
pos,
grid.getFooterSize(size));
tg.putString(TuiUtils.center(pos, size, footer.length()), footer);
screen.setCursorPosition(TuiUtils.shift(pos, 0));
}
}

0 comments on commit 7a24989

Please sign in to comment.