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:
Lotto
2020-04-16 21:21:16 +02:00
committed by Adam
parent 612a23a01f
commit 73773ca479

View File

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