Skip to content

Commit

Permalink
Adjust <player> and <npc> values to be more logical.
Browse files Browse the repository at this point in the history
Adjusted player logic in "on entity damages entity" to player = damager
first, then entity, same with npc.
  • Loading branch information
Talamar1 committed Jun 21, 2015
1 parent 22ab3a2 commit 6a98fe9
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -145,8 +145,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(damager.isPlayer() ? damager.getDenizenPlayer(): entity.isPlayer() ? entity.getDenizenPlayer(): null,
damager.isCitizensNPC() ? damager.getDenizenNPC(): entity.isCitizensNPC() ? dEntity.getNPCFrom(event.getEntity()): null);
}

@Override
Expand Down

0 comments on commit 6a98fe9

Please sign in to comment.