mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-23 01:15:21 +00:00
resolve conflict
This commit is contained in:
@@ -9,6 +9,7 @@ import goldCoinIcon from '../../../../../resources/images/GoldCoinIcon.svg';
|
||||
import portIcon from '../../../../../resources/images/PortIcon.svg';
|
||||
import { renderNumber } from '../../Utils';
|
||||
import { BuildValidator } from '../../../../core/game/BuildValidator';
|
||||
import { ContextMenuEvent } from '../../../InputHandler';
|
||||
|
||||
interface BuildItemDisplay {
|
||||
item: BuildItem
|
||||
@@ -147,7 +148,7 @@ export class BuildMenu extends LitElement {
|
||||
private _hidden = true;
|
||||
|
||||
private canBuild(item: BuildItemDisplay): boolean {
|
||||
if(this.myPlayer == null) {
|
||||
if (this.myPlayer == null) {
|
||||
return false
|
||||
}
|
||||
return this.buildValidator.canBuild(this.myPlayer, this.game.tile(this.clickedCell), item.item)
|
||||
|
||||
Reference in New Issue
Block a user