player-indicators: fix right-click menu targets expanding forever
Fixes the right-click menu targets expanding forever if clan rank or color decoration is enabled in the plugin. Menu entries don't get cleared while the menu is open, which was resulting in colors and ranks getting prepended on every client tick.
This commit is contained in:
@@ -96,6 +96,11 @@ public class PlayerIndicatorsPlugin extends Plugin
|
||||
@Subscribe
|
||||
public void onClientTick(ClientTick clientTick)
|
||||
{
|
||||
if (client.isMenuOpen())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
MenuEntry[] menuEntries = client.getMenuEntries();
|
||||
boolean modified = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user