mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-04 20:06:06 +00:00
remove mode is not player warning
This commit is contained in:
@@ -156,7 +156,6 @@ export class PlayerExecution implements Execution {
|
||||
}
|
||||
const mode = getMode(result)
|
||||
if (!this.mg.playerBySmallID(mode).isPlayer()) {
|
||||
consolex.warn('mode is not found')
|
||||
return
|
||||
}
|
||||
const firstTile = cluster.values().next().value
|
||||
@@ -166,6 +165,7 @@ export class PlayerExecution implements Execution {
|
||||
const modePlayer = this.mg.playerBySmallID(mode)
|
||||
if (!modePlayer.isPlayer()) {
|
||||
consolex.warn('mode player is null')
|
||||
return
|
||||
}
|
||||
for (const tile of tiles) {
|
||||
(modePlayer as Player).conquer(tile)
|
||||
|
||||
Reference in New Issue
Block a user