From 384d687b2fd7c26e84ead3d27574faf3a3ea62e6 Mon Sep 17 00:00:00 2001 From: Hans Mackowiak Date: Thu, 10 Sep 2020 07:25:48 +0200 Subject: [PATCH] ~ update zone lki list --- forge-game/src/main/java/forge/game/zone/Zone.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/forge-game/src/main/java/forge/game/zone/Zone.java b/forge-game/src/main/java/forge/game/zone/Zone.java index 3559338c1a0..fe9f1b696f4 100644 --- a/forge-game/src/main/java/forge/game/zone/Zone.java +++ b/forge-game/src/main/java/forge/game/zone/Zone.java @@ -300,14 +300,10 @@ public class Zone implements java.io.Serializable, Iterable { return zoneType.toString(); } - public Zone getLKICopy() { + public Zone getLKICopy(Map cachedMap) { Zone result = new Zone(zoneType, game); - final CardCollection list = new CardCollection(); - for (final Card c : getCards()) { - list.add(CardUtil.getLKICopy(c)); - } - result.setCards(list); + result.setCards(CardUtil.getLKICopyList(getCards(), cachedMap)); return result; }