packDirectory -> rootPath

This commit is contained in:
Astrash
2023-11-25 15:07:45 +11:00
parent 5c7441241c
commit 4ba71e9c27
7 changed files with 20 additions and 20 deletions

View File

@@ -41,7 +41,7 @@ public class YamlAddon implements AddonInitializer {
.register(addon, ConfigurationDiscoveryEvent.class)
.then(event -> {
try {
FileUtil.filesWithExtension(event.getPack().getPackDirectory(), ".yml")
FileUtil.filesWithExtension(event.getPack().getRootPath(), ".yml")
.forEach((key, value) -> {
LOGGER.debug("Discovered config {}", key);
try {