Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xzxADIxzx committed Jun 1, 2023
1 parent 0cf6946 commit a92dd66
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mod.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ A mod that increases the schematic size limit to 512 blocks! Adds admins, render
",
author: "[#0096FF]xzxADIxzx",
minGameVersion: 144,
version: 2.7.65,
version: 2.7.68,
hidden: true,
main: scheme.Main
1 change: 0 additions & 1 deletion src/java/scheme/SchemeUpdater.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import arc.util.io.Streams;
import arc.util.serialization.Jval;
import arc.files.Fi;
import arc.files.ZipFi;
import mindustry.mod.Mods.LoadedMod;

import static arc.Core.*;
Expand Down
5 changes: 3 additions & 2 deletions src/java/scheme/ui/HudFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class HudFragment {
public FlipButton building = new FlipButton();

/** PlacementFragment and OverlayMarker. */
public Element[] block = new Element[2];
public Element[] block = new Element[3];
public TextField size;

public void build(Group parent) {
Expand Down Expand Up @@ -248,7 +248,7 @@ public void build(Group parent) {
}).row();
}).margin(0f).update(pad -> {
if (block[1] == null) return; // waves main are not null but block is
pad.setTranslation(0f, Scl.scl((mobiles.fliped ? 0f : 127f) - (mobile ? 69f : 0f)) - block[1].getHeight());
pad.setTranslation(0f, Scl.scl((mobiles.fliped ? 0f : 127f) - (mobile ? 69f : 0f)) - block[state.rules.editor ? 2 : 1].getHeight());
pad.setHeight(Scl.scl(mobiles.fliped ? 190.8f : 63.8f));
});
});
Expand Down Expand Up @@ -302,6 +302,7 @@ private void updateBlocks() {
app.post(() -> { // waiting for blockfrag rebuild
block[0] = ui.hudGroup.find("inputTable").parent.parent.parent;
block[1] = ui.hudGroup.find("statustable");
block[2] = ui.hudGroup.find("editor");
});
}

Expand Down

0 comments on commit a92dd66

Please sign in to comment.