fix world map and xp drops
This commit is contained in:
@@ -122,10 +122,9 @@ public class LearnToClickPlugin extends Plugin
|
|||||||
MenuEntry[] menuEntries = client.getMenuEntries();
|
MenuEntry[] menuEntries = client.getMenuEntries();
|
||||||
for (MenuEntry entry : menuEntries)
|
for (MenuEntry entry : menuEntries)
|
||||||
{
|
{
|
||||||
if ((entry.getOption().equals("Floating") && this.shouldRightClickMap) ||
|
if ((entry.getOption().equals("Floating <col=ff9040>World Map</col>") && this.shouldRightClickMap) ||
|
||||||
(entry.getOption().equals("Hide") && this.shouldRightClickXp) || (entry.getOption().equals("Show")
|
(entry.getTarget().equals("<col=ff9040>XP drops</col>") && this.shouldRightClickXp) ||
|
||||||
&& this.shouldRightClickXp) || (entry.getOption().equals("Auto retaliate")
|
(entry.getOption().equals("Auto retaliate") && this.shouldRightClickRetaliate))
|
||||||
&& this.shouldRightClickRetaliate))
|
|
||||||
{
|
{
|
||||||
event.setForceRightClick(true);
|
event.setForceRightClick(true);
|
||||||
return;
|
return;
|
||||||
@@ -136,8 +135,8 @@ public class LearnToClickPlugin extends Plugin
|
|||||||
@Subscribe
|
@Subscribe
|
||||||
private void onMenuEntryAdded(MenuEntryAdded event)
|
private void onMenuEntryAdded(MenuEntryAdded event)
|
||||||
{
|
{
|
||||||
if ((event.getOption().equals("Floating") && this.shouldRightClickMap) || (event.getOption().equals("Hide")
|
if ((event.getOption().equals("Floating <col=ff9040>World Map</col>") && this.shouldRightClickMap) ||
|
||||||
&& this.shouldRightClickXp) || (event.getOption().equals("Show") && this.shouldRightClickXp) ||
|
(event.getTarget().equals("<col=ff9040>XP drops</col>") && this.shouldRightClickXp) ||
|
||||||
(event.getOption().equals("Auto retaliate") && this.shouldRightClickRetaliate))
|
(event.getOption().equals("Auto retaliate") && this.shouldRightClickRetaliate))
|
||||||
{
|
{
|
||||||
forceRightClickFlag = true;
|
forceRightClickFlag = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user