impling: Fix overlays (#1926)

impling: Fix overlays
This commit is contained in:
Owain van Brakel
2019-11-07 22:59:37 +01:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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;
} }

View File

@@ -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;
} }