diff options
author | tom-overton <tom.overton@outlook.com> | 2022-05-27 17:30:13 -0700 |
---|---|---|
committer | rafa_99 <raroma09@gmail.com> | 2022-05-29 22:01:26 +0100 |
commit | 339d465120f59de9180243e94a4a4811bf425736 (patch) | |
tree | 0e6962c1b317e354f8653adaf83a7e94cd42c375 | |
parent | 0d8c6dbc1e6d9cd92a40fa2b016ceb9663b6c221 (diff) |
CLI: Fix issue where Gen 7 required an update file
Thanks to UTDZac for finding this!
-rw-r--r-- | src/com/sneed/pkrandom/cli/CliRandomizer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/sneed/pkrandom/cli/CliRandomizer.java b/src/com/sneed/pkrandom/cli/CliRandomizer.java index e9d300c..4323197 100644 --- a/src/com/sneed/pkrandom/cli/CliRandomizer.java +++ b/src/com/sneed/pkrandom/cli/CliRandomizer.java @@ -61,7 +61,7 @@ public class CliRandomizer { if (rhf.isLoadable(romFileHandler.getAbsolutePath())) { romHandler = rhf.create(RandomSource.instance()); romHandler.loadRom(romFileHandler.getAbsolutePath()); - if (updateFilePath != null && romHandler.generationOfPokemon() == 6 || romHandler.generationOfPokemon() == 7) { + if (updateFilePath != null && (romHandler.generationOfPokemon() == 6 || romHandler.generationOfPokemon() == 7)) { romHandler.loadGameUpdate(updateFilePath); if (!saveAsDirectory) { printWarning("Forcing save as directory since a game update was supplied."); |