mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-12 16:27:45 +00:00
Fix up issues with removing variations
This commit is contained in:
1 parent
8bf33959e2
commit
76c0afc815
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user