Skip to content

Commit

Permalink
Fixed check in ButtonGroup drag event drop to exit where there is no …
Browse files Browse the repository at this point in the history
…change in group for the same panel.
  • Loading branch information
bubblobill committed Oct 1, 2024
1 parent fbb27b1 commit 3581951
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ public void drop(DropTargetDropEvent event) {
MacroButtonProperties oldMacroProps = new MacroButtonProperties(tempProperties);

// stops players from moving macros into/from the Campaign/GM panels
// debounce first, ignore moves that change nothing
if (tempProperties.getGroup().equals(getMacroGroup())) {
// debounce first, ignore moves to the same group in the same panel
if (tempProperties.getGroup().equals(getMacroGroup()) && data.panelClass.equals(panelClass)) {
event.dropComplete(false);
} else if (!MapTool.getPlayer().isGM()
&& (panelClass.equals("CampaignPanel")
Expand Down

0 comments on commit 3581951

Please sign in to comment.