screenshot plugin: Fix death pics again (#1206)

BONUS: fixes wilderness location overlay when in wilderness

Signed-off-by: PKLite <stonewall@pklite.xyz>
This commit is contained in:
ST0NEWALL
2019-07-31 08:40:49 -04:00
committed by GitHub
parent 92917fb421
commit 3c7738b86b
2 changed files with 2 additions and 2 deletions

View File

@@ -256,7 +256,7 @@ public enum WorldLocation
s = entry.getValue(); s = entry.getValue();
return s; return s;
} }
int distTo = worldArea.distanceTo(worldArea); int distTo = worldArea.distanceTo(worldPoint);
if (distTo < dist) if (distTo < dist)
{ {
dist = distTo; dist = distTo;

View File

@@ -366,7 +366,7 @@ public class ScreenshotPlugin extends Plugin
if (this.screenshotPlayerDeath && client.getLocalPlayer().equals(e.getActor())) if (this.screenshotPlayerDeath && client.getLocalPlayer().equals(e.getActor()))
{ {
takeScreenshot("Death"); takeScreenshot("Death - " + format(new Date()));
} }