Merge pull request #1852 from whocodes/master

menuentryswapper: Fix Remove objects wildcard
This commit is contained in:
Lucwousin
2019-10-28 20:18:47 +01:00
committed by GitHub

View File

@@ -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;