fixing Method checkResourceToBuild
This commit is contained in:
@@ -85,7 +85,7 @@ public class Player {
|
||||
*/
|
||||
public boolean build(Config.Structure structure){
|
||||
List<Config.Resource> costs = structure.getCosts();
|
||||
if(structureToUse.get(structure) < 1 || !checkRessourceToBuild(costs)){
|
||||
if(structureToUse.get(structure) < 1 || !checkResourceToBuild(costs)){
|
||||
return false;
|
||||
}
|
||||
structureToUse.put(structure, structureToUse.get(structure) - 1);
|
||||
|
||||
Reference in New Issue
Block a user