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:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user