Merge pull request #7502 from deathbeam/skip-out-of-scene

Null-check local location in trap overlay
This commit is contained in:
Adam
2019-01-22 19:14:24 -05:00
committed by GitHub
2 changed files with 7 additions and 0 deletions

View File

@@ -143,6 +143,11 @@ public class TrapOverlay extends Overlay
}
net.runelite.api.Point loc = Perspective.localToCanvas(client, localLoc, client.getPlane());
if (loc == null)
{
return;
}
double timeLeft = 1 - trap.getTrapTimeRelative();
ProgressPieComponent pie = new ProgressPieComponent();