fixes screen shotting local players deaths (#1198)

Signed-off-by: PKLite <stonewall@pklite.xyz>
This commit is contained in:
ST0NEWALL
2019-07-30 09:25:34 -04:00
committed by Kyleeld
parent ec8eda62f5
commit 3701cfa294

View File

@@ -358,9 +358,17 @@ public class ScreenshotPlugin extends Plugin
private void onAnimationChanged(AnimationChanged e) private void onAnimationChanged(AnimationChanged e)
{ {
//this got refactored somewhere, but some things were missing
if (!this.screenshotFriendDeath || !this.screenshotPlayerDeath) if (e.getActor().getAnimation() != 836)
{
return; return;
}
if (this.screenshotPlayerDeath && client.getLocalPlayer().equals(e.getActor()))
{
takeScreenshot("Death");
}
if (!(e.getActor() instanceof Player)) if (!(e.getActor() instanceof Player))
return; return;