From 7cbb201451e427d69613f934c1c359641959edf3 Mon Sep 17 00:00:00 2001 From: muskenum Date: Sun, 15 May 2016 16:41:44 +0200 Subject: [PATCH] Fixed ZPM spawn on Fields with Boxes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Olyan mezőre is rakott ZPM-et, ahol doboz volt, így nem lehetett látni, hogy van-e ott ZPM. --- cicaprojekt/Field.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cicaprojekt/Field.java b/cicaprojekt/Field.java index 18a1100..a6f6747 100644 --- a/cicaprojekt/Field.java +++ b/cicaprojekt/Field.java @@ -25,6 +25,7 @@ public class Field extends cicaprojekt.Tile { @Override public boolean canHazZPM() { - return true; + if(boxStack.size() > 0) return false; + else return true; } }