Skip to content

Commit

Permalink
Resolves RPTools#4883
Browse files Browse the repository at this point in the history
  • Loading branch information
Jmr3366 committed Sep 4, 2024
1 parent a8b8cba commit 93b36e9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ public void drop(DropTargetDropEvent event) {
MacroButtonProperties oldMacroProps = new MacroButtonProperties(tempProperties);

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

0 comments on commit 93b36e9

Please sign in to comment.