impling: Fix overlays
This commit is contained in:
@@ -84,7 +84,7 @@ enum Impling
|
|||||||
|
|
||||||
LUCKY(ImplingType.LUCKY, NpcID.LUCKY_IMPLING),
|
LUCKY(ImplingType.LUCKY, NpcID.LUCKY_IMPLING),
|
||||||
LUCKY_2(ImplingType.LUCKY, NpcID.LUCKY_IMPLING_7302);
|
LUCKY_2(ImplingType.LUCKY, NpcID.LUCKY_IMPLING_7302);
|
||||||
|
|
||||||
private ImplingType implingType;
|
private ImplingType implingType;
|
||||||
private final int npcId;
|
private final int npcId;
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ public class ImplingMinimapOverlay extends Overlay
|
|||||||
{
|
{
|
||||||
Point impLocation = imp.getMinimapLocation();
|
Point impLocation = imp.getMinimapLocation();
|
||||||
Color color = plugin.npcToColor(imp);
|
Color color = plugin.npcToColor(imp);
|
||||||
if (plugin.showNpc(imp) || impLocation == null || color == null)
|
if (!plugin.showNpc(imp) || impLocation == null || color == null)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ public class ImplingsOverlay extends Overlay
|
|||||||
for (NPC imp : implings)
|
for (NPC imp : implings)
|
||||||
{
|
{
|
||||||
Color color = plugin.npcToColor(imp);
|
Color color = plugin.npcToColor(imp);
|
||||||
if (plugin.showNpc(imp) || color == null)
|
if (!plugin.showNpc(imp) || color == null)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user