Skip to content

Commit

Permalink
Fix account-linked profile changing sometimes being misinterpreted as…
Browse files Browse the repository at this point in the history
… tag name changes.
  • Loading branch information
geheur committed Feb 29, 2024
1 parent 4f30262 commit dd7ee73
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies {
}

group = 'com.banktaglayouts'
version = '1.4.24'
version = '1.4.25'
sourceCompatibility = '1.8'

tasks.withType(JavaCompile) {
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/com/banktaglayouts/BankTagLayoutsPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,14 @@ private void handlePotentialTagRename(ConfigChanged event) {
// because it can cause people to lose their data. Real renames come through on the client thread.
if (!client.isClientThread()) return;

for (StackTraceElement stackTraceElement : new Exception().getStackTrace())
{
// System.out.println(stackTraceElement.getClassName() + " " + stackTraceElement.getMethodName());
if (stackTraceElement.getMethodName().equals("switchProfile")) {
return;
}
}

String oldValue = event.getOldValue();
String newValue = event.getNewValue();
Set<String> oldTags = new HashSet<>(Text.fromCSV(oldValue == null ? "" : oldValue));
Expand Down

0 comments on commit dd7ee73

Please sign in to comment.