Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bibi-reden authored May 17, 2024
1 parent 7977b12 commit eb6bcf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,12 @@ public class LevelKey extends CachedPlayerKey<Integer> {
}

@Override
public @NotNull Integer readFromNbt(NbtCompound tag) {
public @NotNull Integer readFromNbt(CompoundTag tag) {
return tag.getInt("level");
}

@Override
public void writeToNbt(NbtCompound tag, @NotNull Object value) {
public void writeToNbt(CompoundTag tag, @NotNull Object value) {
// Due to some limitations, type checking cannot be provided for the second argument, but you can almost safely guarantee this value will be associated with your type-parameter.
tag.putInt("level", (Integer) value);
}
Expand Down

0 comments on commit eb6bcf6

Please sign in to comment.