mes: Fix Remove objects wildcard

This commit is contained in:
whocodes
2019-10-27 22:12:06 -04:00
parent b4346cf5f1
commit c0b1651717

View File

@@ -601,8 +601,7 @@ public class MenuEntrySwapperPlugin extends Plugin
for (final String object : removedObjects)
{
if (target.equals(object)
|| hasArrow && target.endsWith(object)
|| targetLength > object.length() && target.startsWith(object))
|| hasArrow && target.endsWith(object))
{
client.setMenuOptionCount(client.getMenuOptionCount() - 1);
return;