Skip to content

Commit

Permalink
Fix entity names
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEpicBlock committed Apr 4, 2023
1 parent 7c4158f commit f361a14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.14.12

# Mod Properties
mod_version = 0.3.4
mod_version = 0.3.5
maven_group = nl.theepicblock
archives_base_name = polyconfig

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private static void processEntity(Identifier moddedId, EntityType<?> moddedEntit
.orElseThrow(() -> new ConfigFormatException("Couldn't find any entity matching "+baseEntityStr)
.withHelp("Try checking the spelling"));

var nameNodes = Utils.getChildren(node).stream().filter(n -> n.getIdentifier().equals("base")).toList();
var nameNodes = Utils.getChildren(node).stream().filter(n -> n.getIdentifier().equals("name")).toList();
if (nameNodes.size() > 1) {
throw new ConfigFormatException("Expected 0 or 1 name node, found "+nameNodes.size());
}
Expand Down

0 comments on commit f361a14

Please sign in to comment.