server debug
This commit is contained in:
@@ -204,8 +204,8 @@ public class MapsDialog extends FloatingDialog{
|
|||||||
}
|
}
|
||||||
}).fillX().height(54f).marginLeft(10);
|
}).fillX().height(54f).marginLeft(10);
|
||||||
|
|
||||||
table.addImageTextButton(map.workshop ? "$view.workshop" : "$delete", map.workshop ? Icon.linkSmall : Icon.trash16Small, () -> {
|
table.addImageTextButton(map.workshop && steam ? "$view.workshop" : "$delete", map.workshop && steam ? Icon.linkSmall : Icon.trash16Small, () -> {
|
||||||
if(map.workshop){
|
if(map.workshop && steam){
|
||||||
platform.viewMapListing(map);
|
platform.viewMapListing(map);
|
||||||
}else{
|
}else{
|
||||||
ui.showConfirm("$confirm", Core.bundle.format("map.delete", map.name()), () -> {
|
ui.showConfirm("$confirm", Core.bundle.format("map.delete", map.name()), () -> {
|
||||||
|
|||||||
@@ -801,6 +801,7 @@ public class ServerControl implements ApplicationListener{
|
|||||||
Runnable r = () -> {
|
Runnable r = () -> {
|
||||||
|
|
||||||
Array<Player> players = new Array<>();
|
Array<Player> players = new Array<>();
|
||||||
|
Log.info("Players: " + playerGroup.all());
|
||||||
for(Player p : playerGroup.all()){
|
for(Player p : playerGroup.all()){
|
||||||
players.add(p);
|
players.add(p);
|
||||||
p.setDead(true);
|
p.setDead(true);
|
||||||
@@ -814,6 +815,8 @@ public class ServerControl implements ApplicationListener{
|
|||||||
state.rules = world.getMap().applyRules(lastMode);
|
state.rules = world.getMap().applyRules(lastMode);
|
||||||
|
|
||||||
for(Player p : players){
|
for(Player p : players){
|
||||||
|
|
||||||
|
Log.info("Iterate: " + p.name);
|
||||||
p.reset();
|
p.reset();
|
||||||
if(state.rules.pvp){
|
if(state.rules.pvp){
|
||||||
p.setTeam(netServer.assignTeam(p, new ArrayIterable<>(players)));
|
p.setTeam(netServer.assignTeam(p, new ArrayIterable<>(players)));
|
||||||
|
|||||||
Reference in New Issue
Block a user