Skip to content

Commit

Permalink
use getDenizenObject
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed May 15, 2022
1 parent dc40125 commit b172b1d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -59,7 +59,7 @@ public String getName() {
@Override
public ObjectTag getContext(String name) {
if (name.equals("victim")) {
return new EntityTag(event.getVictim());
return new EntityTag(event.getVictim()).getDenizenObject();
}
else if (name.equals("weapon")) {
return new ElementTag(event.getWeaponTitle());
Expand Down
Expand Up @@ -90,7 +90,7 @@ public ObjectTag getContext(String name) {
case "damager":
return getDamager();
case "victim":
return new EntityTag(event.getVictim());
return new EntityTag(event.getVictim()).getDenizenObject();
case "weapon":
return new ElementTag(event.getWeaponTitle());
}
Expand Down
Expand Up @@ -142,7 +142,7 @@ public ObjectTag getObjectAttribute(Attribute attribute) {
// Returns the entity of the disguise.
// -->
if (attribute.startsWith("entity")) {
return new EntityTag(disguise.getEntity()).getObjectAttribute(attribute.fulfill(1));
return new EntityTag(disguise.getEntity()).getDenizenObject().getObjectAttribute(attribute.fulfill(1));
}

// <--[tag]
Expand Down
Expand Up @@ -96,7 +96,7 @@ public ObjectTag getObjectAttribute(Attribute attribute) {
if (sentinel.chasing == null) {
return null;
}
return new EntityTag(sentinel.chasing).getObjectAttribute(attribute.fulfill(1));
return new EntityTag(sentinel.chasing).getDenizenObject().getObjectAttribute(attribute.fulfill(1));
}

// <--[tag]
Expand Down

0 comments on commit b172b1d

Please sign in to comment.