Skip to content

Commit eb84d74

Browse files
authored
Update concepts.mdx
1 parent 7b5800c commit eb84d74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/java/concepts.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ generating assets and data. Resource caches have an identifier associated with t
99

1010
```java
1111
public static final DataResourceCache DATA_CACHE =
12-
ResourceCache.register(new DataResourceCache(new ResourceLocation("my_mod", "data")));
12+
ResourceCache.register(new DataResourceCache(ResourceLocation.fromNamespaceAndPath("my_mod", "data")));
1313
```
1414

1515
`AssetResourceCache` is a similar built-in implementation for client resources.
@@ -36,4 +36,4 @@ existing resources or data both when generating resources and when determining w
3636

3737
Resources and data from other sources (the base game, resource packs, other mods, etc.) can be accessed through the provided
3838
`ResourceGenerationContext`; by default, this will not contain resources from other packs added by DynAssetGen. To access
39-
these, provide their names in `ResourceCache#getDependencies`.
39+
these, provide their names in `ResourceCache#getDependencies`.

0 commit comments

Comments
 (0)