Skip to content

Commit f09a616

Browse files
committed
chore(paper/datapack-discovery): fix small phrasing issue
1 parent 5a5de22 commit f09a616

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/docs/paper/dev/api/lifecycle/datapacks.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ Code example:
139139
```java showLineNumbers startLineNumber=8
140140
try {
141141
// Retrieve the URI of the datapack folder.
142-
URI uri = Objects.requireNonNull(getClass().getResource("/custom_datapack")).toURI();
143-
// Discover the pack. Here, the id is set to "provided", which indicates to a server owner
144-
// that your plugin includes this data pack (as the name is prefixes with the plugin name).
142+
URI uri = this.getClass().getResource("/custom_datapack").toURI();
143+
// Discover the pack. The ID is set to "provided", which indicates to
144+
// a server owner that your plugin includes this data pack.
145145
event.registrar().discoverPack(uri, "provided");
146146
} catch (URISyntaxException | IOException e) {
147147
throw new RuntimeException(e);

0 commit comments

Comments
 (0)