Commit 05917060 authored by Theodore Lopez's avatar Theodore Lopez
parents 6a891e66 ab8d369d
......@@ -191,7 +191,11 @@ public class LocalGameLoop extends Thread{
*/
public void sendEvent(NetworkObject event)
{
getNetworkConnection().sendEvent(event);
if (getNetworkConnection().isBroken())
GameStarter.initiateBrokenConnectionMeasures();
else {
getNetworkConnection().sendEvent(event);
}
}
/**
......
......@@ -17,7 +17,7 @@ public class TestEvent implements Event{
}
@Override
public boolean execute(GameContent gameContent) {
System.out.println("Executing vital stuff...");
//System.out.println("TestEvent: Executing vital stuff...");
return true;
}
......
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