File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/content/docs/paper/dev/api/lifecycle Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -139,9 +139,9 @@ Code example:
139139``` java showLineNumbers startLineNumber=8
140140try {
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);
You can’t perform that action at this time.
0 commit comments