Skip to content

Commit

Permalink
fix: add getPlayerCustomDataStore impl on Fabric
Browse files Browse the repository at this point in the history
(cherry picked from commit c00265f)
  • Loading branch information
WiIIiam278 committed Oct 26, 2024
1 parent fff3dec commit 1215ea4
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,15 @@ public Uniform getUniform() {
return FabricUniform.getInstance(mod.getMetadata().getId());
}

@NotNull
@Override
public Map<Identifier, Data> getPlayerCustomDataStore(@NotNull OnlineUser user) {
return playerCustomDataStore.compute(
user.getUuid(),
(uuid, data) -> data == null ? Maps.newHashMap() : data
);
}

@Override
@Nullable
public InputStream getResource(@NotNull String name) {
Expand Down

0 comments on commit 1215ea4

Please sign in to comment.