Merge pull request #7502 from deathbeam/skip-out-of-scene
Null-check local location in trap overlay
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user