Skip to content

Commit

Permalink
valued -> forElement
Browse files Browse the repository at this point in the history
  • Loading branch information
zml2008 committed May 16, 2021
1 parent 2de79ab commit 4bb5321
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SpongeAPI
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ public void onRegisterData(final RegisterDataEvent event) {

// Or if it is super simple data

this.mySimpleDataKey = Key.valued(this.plugin, "mysimpledata", String.class);
this.mySimpleDataKey = Key.forElement(this.plugin, "mysimpledata", String.class);
event.register(DataRegistration.of(this.mySimpleDataKey, ItemStack.class));

this.myItemTypeKey = Key.valued(this.plugin, "myitemtypedata", ItemType.class);
this.myItemTypeKey = Key.forElement(this.plugin, "myitemtypedata", ItemType.class);
event.register(DataRegistration.of(this.myItemTypeKey, ItemStack.class));
}

Expand Down

0 comments on commit 4bb5321

Please sign in to comment.