Skip to content

Commit

Permalink
fix some old npc action entity contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed May 30, 2020
1 parent a54ac54 commit cdcb8f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -108,7 +108,7 @@ public void run() {
// -->
private void callAction(String act, Entity ent) {
Map<String, ObjectTag> context = new HashMap<>();
context.put("entity", new EntityTag(ent));
context.put("entity", new EntityTag(ent).getDenizenObject());
dnpc.action("mob " + act + " proximity", null, context);
dnpc.action(ent.getType().name() + " " + act + " proximity", null, context);
}
Expand Down
Expand Up @@ -97,7 +97,7 @@ public void damageTrigger(EntityDamageByEntityEvent event) {
if (damager.isProjectile() && damager.hasShooter()) {
damager = damager.getShooter();
}
context.put("damager", damager);
context.put("damager", damager.getDenizenObject());

String determ = npc.action("damaged", null, context);
if (determ != null && determ.equalsIgnoreCase("CANCELLED")) {
Expand Down

0 comments on commit cdcb8f7

Please sign in to comment.