Skip to content

Commit

Permalink
fix hanging event bork
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 11, 2019
1 parent 0f616c4 commit b5317ee
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -101,8 +101,8 @@ public boolean applyDetermination(ScriptContainer container, String determinatio

@Override
public ScriptEntryData getScriptEntryData() {
return new BukkitScriptEntryData(entity.isPlayer() ? dEntity.getPlayerFrom(event.getEntity()) : null,
entity.isCitizensNPC() ? dEntity.getNPCFrom(event.getEntity()) : null);
return new BukkitScriptEntryData(entity != null && entity.isPlayer() ? dEntity.getPlayerFrom(event.getEntity()) : null,
entity != null && entity.isCitizensNPC() ? dEntity.getNPCFrom(event.getEntity()) : null);
}

@Override
Expand Down

0 comments on commit b5317ee

Please sign in to comment.