item stat: fix overlay being shown ontop of menu

Fix item stat being shown ontop menu and also fix theoretical stat text
This commit is contained in:
Seth
2018-02-14 16:57:03 -06:00
parent 38756b9931
commit 3d20a5589c

View File

@@ -56,7 +56,7 @@ public class ItemStatOverlay extends Overlay
@Override
public Dimension render(Graphics2D graphics, Point parent)
{
if (!config.relative() && !config.absolute() && !config.theoretical())
if (client.isMenuOpen() || (!config.relative() && !config.absolute() && !config.theoretical()))
{
return null;
}
@@ -97,7 +97,10 @@ public class ItemStatOverlay extends Overlay
if (config.theoretical())
{
b.append("/");
if (config.relative())
{
b.append("/");
}
b.append(c.getTheoretical());
}