fixing Method checkResourceToBuild

This commit is contained in:
schrom01 2021-12-07 11:45:22 +01:00
parent 4c56518ba0
commit 458905ddd4
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ public class Player {
*/ */
public boolean build(Config.Structure structure){ public boolean build(Config.Structure structure){
List<Config.Resource> costs = structure.getCosts(); List<Config.Resource> costs = structure.getCosts();
if(structureToUse.get(structure) < 1 || !checkRessourceToBuild(costs)){ if(structureToUse.get(structure) < 1 || !checkResourceToBuild(costs)){
return false; return false;
} }
structureToUse.put(structure, structureToUse.get(structure) - 1); structureToUse.put(structure, structureToUse.get(structure) - 1);