Clone the armor when the flagwatcher is cloned

This commit is contained in:
Andrew 2013-10-22 07:18:17 +13:00
parent 249366cb2b
commit 0ca3c26ba1

@ -61,6 +61,7 @@ public class FlagWatcher {
public FlagWatcher clone() { public FlagWatcher clone() {
FlagWatcher cloned = new FlagWatcher(disguise); FlagWatcher cloned = new FlagWatcher(disguise);
cloned.entityValues = (HashMap<Integer, Object>) entityValues.clone(); cloned.entityValues = (HashMap<Integer, Object>) entityValues.clone();
cloned.setArmor(items.clone());
return cloned; return cloned;
} }