From 458905ddd4f99c022914420ff411b46e42804565 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Tue, 7 Dec 2021 11:45:22 +0100 Subject: [PATCH] fixing Method checkResourceToBuild --- src/ch/zhaw/catan/Player.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch/zhaw/catan/Player.java b/src/ch/zhaw/catan/Player.java index c535b68..4f49428 100644 --- a/src/ch/zhaw/catan/Player.java +++ b/src/ch/zhaw/catan/Player.java @@ -85,7 +85,7 @@ public class Player { */ public boolean build(Config.Structure structure){ List 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);