Fix: Fixed "broadcastModel" Method In TCPServer.java.
This commit is contained in:
@@ -122,7 +122,7 @@ public class TCPServer {
|
|||||||
clientHandlers.forEach((x) -> x.notifyEvent(event));
|
clientHandlers.forEach((x) -> x.notifyEvent(event));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void broadcastModel(){
|
public void broadcastModel(Game model){
|
||||||
clientHandlers.forEach((x) -> x.notifyModel(gameController.getModel()));
|
clientHandlers.forEach((x) -> x.notifyModel(model));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user