Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
deirn committed Aug 11, 2024
1 parent 47c31d6 commit 22830a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions platform/forge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ minecraft {
ideaModule("${rootProject.name}.${project.name}.main")

source(sourceSets["main"])
source(sourceSets["api"])
source(sourceSets["plugin"])
rootProject.sourceSets.forEach { source(it) }
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/mcp/mobius/waila/config/PluginConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public enum PluginConfig implements IPluginConfig {

var namespace = p.get(0);
var path = p.get(1);
var entry = getEntry(ResourceLocation.fromNamespaceAndPath(namespace, path));
var entry = getEntry(new ResourceLocation(namespace, path));
var type = entry.getType();

var sb = new StringBuilder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ public void close() throws IOException {
*/
private Json5Writer open(int empty, char openBracket) throws IOException {
beforeValue();
pathNames.addLast("NULL");
pathNames.add("NULL");
push(empty);
out.write(openBracket);
return this;
Expand All @@ -463,7 +463,7 @@ private Json5Writer close(int empty, int nonempty, char closeBracket)
}

stackSize--;
if (!pathNames.isEmpty()) pathNames.removeLast();
if (!pathNames.isEmpty()) pathNames.remove(pathNames.size() - 1);
if (context == nonempty) {
commentAndNewline();
}
Expand Down

0 comments on commit 22830a5

Please sign in to comment.