Merge pull request #1852 from whocodes/master
menuentryswapper: Fix Remove objects wildcard
This commit is contained in:
@@ -601,8 +601,7 @@ public class MenuEntrySwapperPlugin extends Plugin
|
|||||||
for (final String object : removedObjects)
|
for (final String object : removedObjects)
|
||||||
{
|
{
|
||||||
if (target.equals(object)
|
if (target.equals(object)
|
||||||
|| hasArrow && target.endsWith(object)
|
|| hasArrow && target.endsWith(object))
|
||||||
|| targetLength > object.length() && target.startsWith(object))
|
|
||||||
{
|
{
|
||||||
client.setMenuOptionCount(client.getMenuOptionCount() - 1);
|
client.setMenuOptionCount(client.getMenuOptionCount() - 1);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user