fixes screen shotting local players deaths (#1198)
Signed-off-by: PKLite <stonewall@pklite.xyz>
This commit is contained in:
@@ -358,9 +358,17 @@ public class ScreenshotPlugin extends Plugin
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
if (this.screenshotPlayerDeath && client.getLocalPlayer().equals(e.getActor()))
|
||||
{
|
||||
takeScreenshot("Death");
|
||||
}
|
||||
|
||||
|
||||
if (!(e.getActor() instanceof Player))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user