Skip to content

Commit

Permalink
fix the other server flag tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Dec 6, 2020
1 parent 5f254ac commit b77ce28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Expand Up @@ -57,7 +57,7 @@ public ObjectTag getObjectAttribute(Attribute attribute) {
// @returns ElementTag(Boolean)
// @mechanism ItemTag.nbt
// @group properties
// @Deprecated Use has_flag[...] instead.
// @deprecated Use has_flag[...] instead.
// @description
// Deprecated: use <@link tag FlaggableObject.has_flag> instead.
// -->
Expand All @@ -78,7 +78,7 @@ public ObjectTag getObjectAttribute(Attribute attribute) {
// @returns ElementTag
// @mechanism ItemTag.nbt
// @group properties
// @Deprecated Use flag[...] instead.
// @deprecated Use flag[...] instead.
// @description
// Deprecated: use <@link tag FlaggableObject.flag> instead.
// -->
Expand Down Expand Up @@ -136,7 +136,7 @@ public void adjust(Mechanism mechanism) {
// @object ItemTag
// @name remove_nbt
// @input ListTag
// @Deprecated Use 'flag' instead.
// @deprecated Use 'flag' instead.
// @description
// Deprecated: use <@link mechanism ItemTag.flag> instead.
// @tags
Expand Down Expand Up @@ -167,7 +167,7 @@ public void adjust(Mechanism mechanism) {
// @object ItemTag
// @name nbt
// @input ListTag
// @Deprecated Use 'flag' instead.
// @deprecated Use 'flag' instead.
// @description
// Deprecated: use <@link mechanism ItemTag.flag> instead.
// @tags
Expand Down
Expand Up @@ -470,7 +470,8 @@ else if (recipe instanceof CookingRecipe<?>) {
return;
}
if (attribute.startsWith("flag")) {
event.setReplacedObject(Denizen.getInstance().serverFlagMap.doFlagTag(attribute));
event.setReplacedObject(Denizen.getInstance().serverFlagMap.doFlagTag(attribute)
.getObjectAttribute(attribute.fulfill(1)));
return;
}
if (attribute.startsWith("list_flags")) {
Expand Down

0 comments on commit b77ce28

Please sign in to comment.