menumanager: really fix the menus this time

This commit is contained in:
7ate9
2019-06-27 23:56:32 -04:00
parent cd232f0ee8
commit 9bd250a62f
2 changed files with 2 additions and 1 deletions

View File

@@ -81,6 +81,7 @@ public class ComparableEntry
this.type = e.getType();
this.strictOption = true;
}
boolean matches(MenuEntry entry)
{
String opt = Text.standardize(entry.getOption());

View File

@@ -265,7 +265,7 @@ public class MenuManager
{
MenuEntry original = MenuEntry.copy(e);
e.setType(newType);
originalType = new EntryTypeMapping(new ComparableEntry(e), original);
originalType = new EntryTypeMapping(new ComparableEntry(leftClickEntry), original);
}
}