Skip to content

Commit

Permalink
Allows TagSets being empty
Browse files Browse the repository at this point in the history
  • Loading branch information
anjoismysign committed Dec 13, 2023
1 parent e736f06 commit c0175c9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ci-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>us.mytheria</groupId>
<artifactId>BlobLib</artifactId>
<version>1.697.39</version>
<version>1.697.40</version>
<relativePath>pom.xml</relativePath>
</parent>
<artifactId>bloblib</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion local-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>us.mytheria</groupId>
<artifactId>BlobLib</artifactId>
<version>1.697.39</version>
<version>1.697.40</version>
<relativePath>pom.xml</relativePath>
</parent>
<artifactId>bloblib</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>us.mytheria</groupId>
<artifactId>BlobLib</artifactId>
<version>1.697.39</version>
<version>1.697.40</version>
<packaging>pom</packaging>

<properties>
Expand Down
6 changes: 2 additions & 4 deletions src/main/java/us/mytheria/bloblib/BlobLib.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,8 @@ public void onEnable() {
tagSetManager = DataAssetManager.of(fileManager.tagSetsDirectory(),
TagSetReader::READ,
DataAssetType.TAG_SET,
section -> !section.getStringList("Inclusions").isEmpty() ||
!section.getStringList("Exclusions").isEmpty() ||
!section.getStringList("Include-Set").isEmpty() ||
!section.getStringList("Exclude-Set").isEmpty());
section -> section.isList("Inclusions") ||
!section.getStringList("Include-Set").isEmpty());
translatableItemManager = LocalizableDataAssetManager
.of(fileManager.itemsDirectory(),
TranslatableReader::ITEM,
Expand Down

0 comments on commit c0175c9

Please sign in to comment.