Commit 96920cfc authored by Theodore Lopez's avatar Theodore Lopez

change name

parent dedf8dab
...@@ -133,7 +133,7 @@ public class GameContent implements Serializable{ ...@@ -133,7 +133,7 @@ public class GameContent implements Serializable{
sem.release(); sem.release();
} }
public boolean checkStrairs(Map newMap,NetworkConnection networkConnection) throws InterruptedException { public boolean checkStairs(Map newMap,NetworkConnection networkConnection) throws InterruptedException {
for(Character player:players){ for(Character player:players){
if(player.isOnStairs(map)){ if(player.isOnStairs(map)){
recreate(map,true); recreate(map,true);
......
...@@ -125,7 +125,7 @@ public class ServerLoop extends Thread { ...@@ -125,7 +125,7 @@ public class ServerLoop extends Thread {
networkConnection.sendEvent(toBeSentToClientsEvent); networkConnection.sendEvent(toBeSentToClientsEvent);
} }
gameContent.applyTrigger(networkConnection); gameContent.applyTrigger(networkConnection);
if(gameContent.checkStrairs(nextMap,networkConnection)) if(gameContent.checkStairs(nextMap,networkConnection))
nextMap=MapGeneration.mapGeneration(MapSize.SMALL); nextMap=MapGeneration.mapGeneration(MapSize.SMALL);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment