added a forgotten parameter

This commit is contained in:
Seraina 2022-04-08 23:24:24 +02:00
parent ce3fa4dde1
commit 316619d067

View File

@ -28,7 +28,7 @@ public class Passenger {
**/ **/
public void send(String msg, Game game) { public void send(String msg, Game game) {
if (isPlayer) { if (isPlayer) {
String formattedMsg = ServerGameInfoHandler.format(msg); String formattedMsg = ServerGameInfoHandler.format(msg,game);
clientHandler.sendMsgToClient(formattedMsg); clientHandler.sendMsgToClient(formattedMsg);
} }
LOGGER.warn("This object should not just be a passenger. Position:" + position); LOGGER.warn("This object should not just be a passenger. Position:" + position);