Skip to content

Commit

Permalink
Fix Thieves' armband not working in bank strings
Browse files Browse the repository at this point in the history
  • Loading branch information
themrrobert committed May 12, 2024
1 parent c1b9836 commit ef60b96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/customItems/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export function setCustomItem(id: number, name: string, baseItem: string, newIte

// Track names of re-mapped items to break the link:
const oldItem = Items.get(id);
if (oldItem) {
if (oldItem && deepCleanString(oldItem.name) !== deepCleanString(name)) {
// If the custom item has the same name as the original item don't break the link
overwrittenItemNames.set(deepCleanString(oldItem.name), oldItem);
}
Items.set(id, data);
Expand Down

0 comments on commit ef60b96

Please sign in to comment.