Skip to content

Commit

Permalink
Fix variable card writing failing when reselecting text, Closes #25
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Dec 17, 2024
1 parent de84f36 commit f4e9350
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@

import javax.annotation.Nullable;
import java.nio.file.Path;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.*;
import java.util.regex.Pattern;

/**
Expand Down Expand Up @@ -374,8 +370,8 @@ public IScriptVariableFacade create(int id) {
}

@Override
public void setValue(int valueId, CompoundTag value) {
super.setValue(valueId, value);
public void onUpdate(int valueId, CompoundTag value) {
super.onUpdate(valueId, value);

// Potentially trigger a variable write when a new member was selected
if (valueId == selectionId) {
Expand Down

0 comments on commit f4e9350

Please sign in to comment.