Skip to content

Commit

Permalink
fix(text-serializer-gson): typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zml2008 committed Apr 25, 2024
1 parent e0edf0f commit 3d78a6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public interface GsonDataComponentValue extends DataComponentValue {
* @return a newly created item data holder instance
* @since 4.17.0
*/
static GsonDataComponentValue gsonDatacomponentValue(final @NotNull JsonElement data) {
static GsonDataComponentValue gsonDataComponentValue(final @NotNull JsonElement data) {
if (data instanceof JsonNull) {
return GsonDataComponentValueImpl.RemovedGsonComponentValueImpl.INSTANCE;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public HoverEvent.ShowItem read(final JsonReader in) throws IOException {
if (dataComponents == null) {
dataComponents = new HashMap<>();
}
dataComponents.put(id, GsonDataComponentValue.gsonDatacomponentValue(tree));
dataComponents.put(id, GsonDataComponentValue.gsonDataComponentValue(tree));
}
in.endObject();
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public final class GsonDataComponentValueConverterProvider implements DataCompon
DataComponentValueConverterRegistry.Conversion.convert(
DataComponentValue.Removed.class,
GsonDataComponentValue.class,
(k, removed) -> GsonDataComponentValue.gsonDatacomponentValue(JsonNull.INSTANCE)
(k, removed) -> GsonDataComponentValue.gsonDataComponentValue(JsonNull.INSTANCE)
)
);
}
Expand Down

0 comments on commit 3d78a6c

Please sign in to comment.