Skip to content

Commit

Permalink
fix: add getPlayerCustomDataStore impl on Fabric
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Oct 26, 2024
1 parent e303984 commit c00265f
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 c00265f

Please sign in to comment.