Merge pull request #578 from Sethtroll/fixitemstatoverlay
Item stat: Fix overlay being shown ontop of menu
This commit is contained in:
@@ -56,7 +56,7 @@ public class ItemStatOverlay extends Overlay
|
|||||||
@Override
|
@Override
|
||||||
public Dimension render(Graphics2D graphics, Point parent)
|
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;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -97,7 +97,10 @@ public class ItemStatOverlay extends Overlay
|
|||||||
|
|
||||||
if (config.theoretical())
|
if (config.theoretical())
|
||||||
{
|
{
|
||||||
b.append("/");
|
if (config.relative())
|
||||||
|
{
|
||||||
|
b.append("/");
|
||||||
|
}
|
||||||
b.append(c.getTheoretical());
|
b.append(c.getTheoretical());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user