Bugfixes
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -5,7 +5,7 @@ import io.anuke.annotations.Annotations.Remote;
|
|||||||
import io.anuke.arc.ApplicationListener;
|
import io.anuke.arc.ApplicationListener;
|
||||||
import io.anuke.arc.Events;
|
import io.anuke.arc.Events;
|
||||||
import io.anuke.arc.collection.ObjectSet.ObjectSetIterator;
|
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.content.*;
|
||||||
import io.anuke.mindustry.core.GameState.State;
|
import io.anuke.mindustry.core.GameState.State;
|
||||||
import io.anuke.mindustry.entities.*;
|
import io.anuke.mindustry.entities.*;
|
||||||
|
|||||||
@@ -176,6 +176,7 @@ public class NetClient implements ApplicationListener{
|
|||||||
public static void onKick(KickReason reason){
|
public static void onKick(KickReason reason){
|
||||||
netClient.disconnectQuietly();
|
netClient.disconnectQuietly();
|
||||||
state.set(State.menu);
|
state.set(State.menu);
|
||||||
|
logic.reset();
|
||||||
|
|
||||||
if(!reason.quiet){
|
if(!reason.quiet){
|
||||||
if(reason.extraText() != null){
|
if(reason.extraText() != null){
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import io.anuke.arc.function.Consumer;
|
|||||||
import io.anuke.arc.function.Predicate;
|
import io.anuke.arc.function.Predicate;
|
||||||
import io.anuke.arc.math.geom.QuadTree;
|
import io.anuke.arc.math.geom.QuadTree;
|
||||||
import io.anuke.arc.math.geom.Rectangle;
|
import io.anuke.arc.math.geom.Rectangle;
|
||||||
|
import io.anuke.arc.util.*;
|
||||||
import io.anuke.mindustry.entities.traits.Entity;
|
import io.anuke.mindustry.entities.traits.Entity;
|
||||||
|
|
||||||
public class EntityGroup<T extends Entity>{
|
public class EntityGroup<T extends Entity>{
|
||||||
|
|||||||
4
core/src/io/anuke/mindustry/game/SoundControl.java
Normal file
4
core/src/io/anuke/mindustry/game/SoundControl.java
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
package io.anuke.mindustry.game;
|
||||||
|
|
||||||
|
public class SoundControl{
|
||||||
|
}
|
||||||
@@ -176,7 +176,7 @@ public class Zone extends UnlockableContent{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void load(){
|
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"));
|
preview = new Texture(Core.files.internal("zones/" + name + ".png"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -108,6 +108,7 @@ public class PausedDialog extends FloatingDialog{
|
|||||||
|
|
||||||
if(control.saves.getCurrent() == null || !control.saves.getCurrent().isAutosave() || state.rules.tutorial){
|
if(control.saves.getCurrent() == null || !control.saves.getCurrent().isAutosave() || state.rules.tutorial){
|
||||||
state.set(State.menu);
|
state.set(State.menu);
|
||||||
|
logic.reset();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -119,6 +120,7 @@ public class PausedDialog extends FloatingDialog{
|
|||||||
ui.showError("[accent]" + Core.bundle.get("savefail"));
|
ui.showError("[accent]" + Core.bundle.get("savefail"));
|
||||||
}
|
}
|
||||||
state.set(State.menu);
|
state.set(State.menu);
|
||||||
|
logic.reset();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public class ZoneInfoDialog extends FloatingDialog{
|
|||||||
|
|
||||||
rebuildItems.run();
|
rebuildItems.run();
|
||||||
|
|
||||||
cont.table(cont -> {
|
cont.pane(cont -> {
|
||||||
if(zone.locked()){
|
if(zone.locked()){
|
||||||
cont.addImage("icon-locked");
|
cont.addImage("icon-locked");
|
||||||
cont.row();
|
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)
|
() -> 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());
|
).fillX().pad(3).disabled(b -> !zone.canConfigure());
|
||||||
}
|
}
|
||||||
|
cont.marginRight(12f);
|
||||||
});
|
});
|
||||||
cont.row();
|
cont.row();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user