Skip to content

Commit

Permalink
resurrect event: pretend entity is alive
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 5, 2020
1 parent 499c6ff commit 81565b1
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -86,8 +86,10 @@ public ObjectTag getContext(String name) {

@EventHandler
public void onEntityResurrect(EntityResurrectEvent event) {
EntityTag.rememberEntity(event.getEntity());
entity = new EntityTag(event.getEntity());
this.event = event;
fire(event);
EntityTag.forgetEntity(event.getEntity());
}
}

0 comments on commit 81565b1

Please sign in to comment.