item stats: check if GE container is hidden when detecting GE close

When the GE is closed with esc, the container is hidden rather than unloaded.
This commit is contained in:
trimbe
2019-03-16 12:44:54 -04:00
parent 5ba8f71b48
commit ea8dbeece2

View File

@@ -134,7 +134,8 @@ public class ItemStatPlugin extends Plugin
public void onGameTick(GameTick event)
{
if (itemInformationTitle != null && config.geStats()
&& client.getWidget(WidgetInfo.GRAND_EXCHANGE_WINDOW_CONTAINER) == null)
&& (client.getWidget(WidgetInfo.GRAND_EXCHANGE_WINDOW_CONTAINER) == null
|| client.getWidget(WidgetInfo.GRAND_EXCHANGE_WINDOW_CONTAINER).isHidden()))
{
resetGEInventory();
}