mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:20:45 +00:00
actually only send message if related to player (bugfix)
This commit is contained in:
@@ -339,8 +339,8 @@ export class GameImpl implements MutableGame {
|
||||
this.eventBus.emit(new BrokeAllianceEvent(breaker, other))
|
||||
}
|
||||
|
||||
displayMessage(message: string, type: MessageType): void {
|
||||
this.eventBus.emit(new DisplayMessageEvent(message, type))
|
||||
displayMessage(message: string, type: MessageType, playerID: PlayerID | null): void {
|
||||
this.eventBus.emit(new DisplayMessageEvent(message, type, playerID))
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user