Skip to content

Commit

Permalink
hotfix: scheme-size crashed the mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharlottes committed Sep 10, 2023
1 parent b8ca0a6 commit 35c36fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"author": "Sharlotte",
"description": "The mod displays more information in-game, such as unit/building, wave, core, tile, item/unit total info etc",
"subtitle": "hacky ui tool",
"version": "1.9.0",
"version": "1.9.1",
"main": "informatis.Informatis",
"minGameVersion": "145.1",
"dependencies": [],
Expand Down
5 changes: 5 additions & 0 deletions src/informatis/ui/fragments/QuickSchemFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
import arc.struct.Seq;
import arc.util.Align;
import arc.util.*;
import mindustry.Vars;
import mindustry.ctype.*;
import mindustry.game.*;
import mindustry.gen.*;
import mindustry.graphics.Pal;
import mindustry.mod.Mod;
import mindustry.ui.Styles;
import mindustry.ui.dialogs.*;

Expand Down Expand Up @@ -54,6 +56,9 @@ public QuickSchemFragment() {
}

public Table rebuildBody() {
// scheme-size crashed the mod
if(mods.getMod("scheme-size") == null || mods.getMod("scheme-size").enabled()) return new Table();

visible = settings.getBool(("schem"));
if(!visible) return new Table();

Expand Down

0 comments on commit 35c36fb

Please sign in to comment.