Skip to content

Commit

Permalink
Try to fix Constructor, Remove Trash from SWTables
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinary1 committed May 23, 2024
1 parent 5677205 commit c0e4632
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/sw/content/SWBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public static void load() {
SWDistribution.load();
SWCrafting.load();
SWPower.load();
SWUnitTypes.load();

// region crafting

Expand Down
8 changes: 2 additions & 6 deletions src/sw/content/SWUnitTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,9 @@ public class SWUnitTypes {
@EntityDef({TetherUnitc.class, Unitc.class}) public static UnitType protMask, mesoShield, paleoShield, cenoShield;
@EntityDef({Shieldedc.class, Legsc.class, Unitc.class}) public static UnitType prot, meso, paleo, ceno;
@EntityDef({Copterc.class, Unitc.class}) public static UnitType fly, spin, gyro;
@EntityDef({Intangiblec.class, Legsc.class, Unitc.class}) public static UnitType lambda;
@EntityDef({Intangiblec.class, Legsc.class, Unitc.class}) public static UnitType lambda;

public static UnitType
focus, precision, target,

sentry, tower, castle,
existence, remembered, presence;
public static UnitType focus, precision, target, sentry, tower, castle,existence, remembered, presence;

public static void load() {

Expand Down
6 changes: 3 additions & 3 deletions src/sw/ui/SWTables.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,21 @@ public static void buildSandboxSelector(Table cont, Config con, Runnable run) {
}).height(144f);
}).margin(20f).row();
menu.table(heat -> {
heat.add(Core.bundle.get("heat") + ": ");
heat.add("heat" + ": ");
heat.field("" + con.heatValue, floatsOnly, s -> {
con.heatValue = Strings.parseFloat(s, 0);
run.run();
}).growX();
}).growX().row();
menu.table(staticTension -> {
staticTension.add(Core.bundle.get("static-tension") + ": ");
staticTension.add("static-tension" + ": ");
staticTension.field("" + con.sTension, floatsOnly, s -> {
con.sTension = Strings.parseFloat(s, 0);
run.run();
}).growX();
}).growX().row();
menu.table(mobileTension -> {
mobileTension.add(Core.bundle.get("mobile-tension") + ": ");
mobileTension.add("mobile-tension" + ": ");
mobileTension.field("" + con.mTension, floatsOnly, s -> {
con.mTension = Strings.parseFloat(s, 0);
run.run();
Expand Down

0 comments on commit c0e4632

Please sign in to comment.