mirror of
https://github.com/WiIIiam278/HuskSync.git
synced 2025-12-19 14:59:21 +00:00
fix: add getPlayerCustomDataStore impl on Fabric
This commit is contained in:
@@ -274,6 +274,15 @@ public class FabricHuskSync implements DedicatedServerModInitializer, HuskSync,
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user