Clean up merge and remove standardizedtarget field as it's not really used
This commit is contained in:
@@ -28,7 +28,6 @@ import lombok.AccessLevel;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import net.runelite.api.util.Text;
|
||||
|
||||
/**
|
||||
* A menu entry in a right-click menu.
|
||||
@@ -83,7 +82,6 @@ public class MenuEntry
|
||||
this.param0 = param0;
|
||||
this.param1 = param1;
|
||||
this.forceLeftClick = forceLeftClick;
|
||||
this.standardizedTarget = Text.standardize(target, true);
|
||||
}
|
||||
|
||||
public static MenuEntry copy(MenuEntry src)
|
||||
@@ -102,8 +100,5 @@ public class MenuEntry
|
||||
public void setTarget(String target)
|
||||
{
|
||||
this.target = target;
|
||||
this.standardizedTarget = Text.standardize(target, true);
|
||||
}
|
||||
|
||||
private String standardizedTarget;
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ import net.runelite.api.events.ChatMessage;
|
||||
import net.runelite.api.events.ConfigChanged;
|
||||
import net.runelite.api.events.GameStateChanged;
|
||||
import net.runelite.api.events.GameTick;
|
||||
import net.runelite.api.util.Text;
|
||||
import net.runelite.client.config.ConfigManager;
|
||||
import net.runelite.client.eventbus.EventBus;
|
||||
import net.runelite.client.menus.AbstractComparableEntry;
|
||||
@@ -181,7 +182,7 @@ public class BlackjackPlugin extends Plugin
|
||||
public boolean matches(MenuEntry entry)
|
||||
{
|
||||
return
|
||||
entry.getStandardizedTarget().equals(this.getTarget()) &&
|
||||
Text.removeTags(entry.getTarget(), true).equalsIgnoreCase(this.getTarget()) &&
|
||||
entry.getOption().equalsIgnoreCase(this.getOption());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,8 +114,6 @@ import net.runelite.client.plugins.pvptools.PvpToolsConfig;
|
||||
import net.runelite.client.plugins.pvptools.PvpToolsPlugin;
|
||||
import net.runelite.client.util.HotkeyListener;
|
||||
import static net.runelite.client.util.MenuUtil.swap;
|
||||
import net.runelite.client.util.MiscUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
@PluginDescriptor(
|
||||
name = "Menu Entry Swapper",
|
||||
@@ -1167,7 +1165,7 @@ public class MenuEntrySwapperPlugin extends Plugin
|
||||
menuManager.removePriorityEntry("Activate", "Box trap");
|
||||
menuManager.removePriorityEntry("Assignment");
|
||||
menuManager.removePriorityEntry("Bank");
|
||||
menuManager.removePriorityEntry("Buy All");
|
||||
menuManager.removePriorityEntry("Buy <col=ff7000>All");
|
||||
menuManager.removePriorityEntry("Buy-plank");
|
||||
menuManager.removePriorityEntry("Buy-plank", "Sawmill operator");
|
||||
menuManager.removePriorityEntry("Charter");
|
||||
@@ -1233,7 +1231,7 @@ public class MenuEntrySwapperPlugin extends Plugin
|
||||
menuManager.removePriorityEntry("Story");
|
||||
menuManager.removePriorityEntry("Stun", "Hoop snake");
|
||||
menuManager.removePriorityEntry("Take-boat");
|
||||
menuManager.removePriorityEntry("Tan All");
|
||||
menuManager.removePriorityEntry("Tan <col=ff7000>All");
|
||||
menuManager.removePriorityEntry("Teleport menu", "Portal nexus");
|
||||
menuManager.removePriorityEntry("Teleport", "Crafting cape");
|
||||
menuManager.removePriorityEntry("Teleport", "Crafting cape(t)");
|
||||
|
||||
Reference in New Issue
Block a user