Skip to content

Commit

Permalink
Fixed updater not working with mc versions that had a space in them
Browse files Browse the repository at this point in the history
  • Loading branch information
BleachDev committed Jun 1, 2021
1 parent 691404b commit 26bc4e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void init() {
super.init();

if (version == null) {
version = BleachGithubReader.readJson("update", SharedConstants.getGameVersion().getName() + ".json");
version = BleachGithubReader.readJson("update", SharedConstants.getGameVersion().getName().replace(' ', '_') + ".json");

if (version == null) {
version = new JsonObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void init() {
super.init();

if (version == null) {
version = BleachGithubReader.readJson("update", SharedConstants.getGameVersion().getName() + ".json");
version = BleachGithubReader.readJson("update", SharedConstants.getGameVersion().getName().replace(' ', '_') + ".json");

if (version == null) {
version = new JsonObject();
Expand Down

0 comments on commit 26bc4e0

Please sign in to comment.