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