fix overwriting VirtualPockets with same key
This commit is contained in:
parent
0fb93068bd
commit
c088b6c701
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ public class DepthDependentSelector extends VirtualPocket {
|
|||
pocketList = Maps.newLinkedHashMap();
|
||||
for (int i = 0; i < regexPockets.size(); i++) {
|
||||
CompoundTag pocket = regexPockets.getCompound(i);
|
||||
pocketList.put(pocket.getString("regex"), VirtualPocket.deserialize(pocket.getCompound("pocket")));
|
||||
pocketList.putIfAbsent(pocket.getString("regex"), VirtualPocket.deserialize(pocket.getCompound("pocket")));
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue