Fix up issues with removing variations

This commit is contained in:
tterrag1098 committed 2015-01-24 00:56:52 -05:00
1 parent 48274f1e22
commit daae37e36d
2 files changed
+23 -5

No files matched your search

@@ -227,10 +227,8 @@ public class GroupList implements Set<ICarvingGroup> {
}
List<VariationWrapper> toRemove = Lists.newArrayList();
for (VariationWrapper v : lookup.keySet()) {
if ((g == null || lookup.get(v) == g) && v.v.getBlock() == block && v.v.getBlockMeta() == metadata) {
if (g != null) {
g.removeVariation(v.v);
}
if ((g == null || lookup.get(v).getName().equals(g.getName())) && v.equals(new VariationWrapper(new VariationKey(block, metadata)))) {
lookup.get(v).removeVariation(v.v);
toRemove.add(v);
}
}