diff --git a/core/assets/maps/overgrowth.msav b/core/assets/maps/overgrowth.msav index 927f58d1c4..23db0583ed 100644 Binary files a/core/assets/maps/overgrowth.msav and b/core/assets/maps/overgrowth.msav differ diff --git a/core/assets/maps/saltFlats.msav b/core/assets/maps/saltFlats.msav index 6d03b08641..83debe54dd 100644 Binary files a/core/assets/maps/saltFlats.msav and b/core/assets/maps/saltFlats.msav differ diff --git a/core/src/io/anuke/mindustry/core/Logic.java b/core/src/io/anuke/mindustry/core/Logic.java index 9f6b77ba80..1cf43878d2 100644 --- a/core/src/io/anuke/mindustry/core/Logic.java +++ b/core/src/io/anuke/mindustry/core/Logic.java @@ -5,7 +5,7 @@ import io.anuke.annotations.Annotations.Remote; import io.anuke.arc.ApplicationListener; import io.anuke.arc.Events; import io.anuke.arc.collection.ObjectSet.ObjectSetIterator; -import io.anuke.arc.util.Time; +import io.anuke.arc.util.*; import io.anuke.mindustry.content.*; import io.anuke.mindustry.core.GameState.State; import io.anuke.mindustry.entities.*; diff --git a/core/src/io/anuke/mindustry/core/NetClient.java b/core/src/io/anuke/mindustry/core/NetClient.java index ba23997804..81c002966b 100644 --- a/core/src/io/anuke/mindustry/core/NetClient.java +++ b/core/src/io/anuke/mindustry/core/NetClient.java @@ -176,6 +176,7 @@ public class NetClient implements ApplicationListener{ public static void onKick(KickReason reason){ netClient.disconnectQuietly(); state.set(State.menu); + logic.reset(); if(!reason.quiet){ if(reason.extraText() != null){ diff --git a/core/src/io/anuke/mindustry/entities/EntityGroup.java b/core/src/io/anuke/mindustry/entities/EntityGroup.java index a13102eac3..6b2e343ae3 100644 --- a/core/src/io/anuke/mindustry/entities/EntityGroup.java +++ b/core/src/io/anuke/mindustry/entities/EntityGroup.java @@ -6,6 +6,7 @@ import io.anuke.arc.function.Consumer; import io.anuke.arc.function.Predicate; import io.anuke.arc.math.geom.QuadTree; import io.anuke.arc.math.geom.Rectangle; +import io.anuke.arc.util.*; import io.anuke.mindustry.entities.traits.Entity; public class EntityGroup{ diff --git a/core/src/io/anuke/mindustry/game/SoundControl.java b/core/src/io/anuke/mindustry/game/SoundControl.java new file mode 100644 index 0000000000..89afd3e5cd --- /dev/null +++ b/core/src/io/anuke/mindustry/game/SoundControl.java @@ -0,0 +1,4 @@ +package io.anuke.mindustry.game; + +public class SoundControl{ +} diff --git a/core/src/io/anuke/mindustry/type/Zone.java b/core/src/io/anuke/mindustry/type/Zone.java index a89d7f3079..02ef87b8e1 100644 --- a/core/src/io/anuke/mindustry/type/Zone.java +++ b/core/src/io/anuke/mindustry/type/Zone.java @@ -176,7 +176,7 @@ public class Zone extends UnlockableContent{ @Override public void load(){ - if(Core.files.internal("zones/" + name + ".png").exists()){ + if(Core.files.internal("zones/" + name + ".png").exists() && !headless){ preview = new Texture(Core.files.internal("zones/" + name + ".png")); } } diff --git a/core/src/io/anuke/mindustry/ui/dialogs/PausedDialog.java b/core/src/io/anuke/mindustry/ui/dialogs/PausedDialog.java index 46506277f2..40fb91dc9b 100644 --- a/core/src/io/anuke/mindustry/ui/dialogs/PausedDialog.java +++ b/core/src/io/anuke/mindustry/ui/dialogs/PausedDialog.java @@ -108,6 +108,7 @@ public class PausedDialog extends FloatingDialog{ if(control.saves.getCurrent() == null || !control.saves.getCurrent().isAutosave() || state.rules.tutorial){ state.set(State.menu); + logic.reset(); return; } @@ -119,6 +120,7 @@ public class PausedDialog extends FloatingDialog{ ui.showError("[accent]" + Core.bundle.get("savefail")); } state.set(State.menu); + logic.reset(); }); } } diff --git a/core/src/io/anuke/mindustry/ui/dialogs/ZoneInfoDialog.java b/core/src/io/anuke/mindustry/ui/dialogs/ZoneInfoDialog.java index 835557aa14..36baa4125f 100644 --- a/core/src/io/anuke/mindustry/ui/dialogs/ZoneInfoDialog.java +++ b/core/src/io/anuke/mindustry/ui/dialogs/ZoneInfoDialog.java @@ -58,7 +58,7 @@ public class ZoneInfoDialog extends FloatingDialog{ rebuildItems.run(); - cont.table(cont -> { + cont.pane(cont -> { if(zone.locked()){ cont.addImage("icon-locked"); cont.row(); @@ -138,6 +138,7 @@ public class ZoneInfoDialog extends FloatingDialog{ () -> loadout.show(zone.loadout.core().itemCapacity, zone::getStartingItems, zone::resetStartingItems, zone::updateLaunchCost, rebuildItems, item -> data.getItem(item) > 0 && item.type == ItemType.material) ).fillX().pad(3).disabled(b -> !zone.canConfigure()); } + cont.marginRight(12f); }); cont.row();