Skip to content

Commit

Permalink
fix broken getOptimizationType function
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed May 13, 2024
1 parent 11ef3ee commit b29f4af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.xginko</groupId>
<artifactId>VillagerOptimizer</artifactId>
<version>1.5.4</version>
<version>1.5.5</version>
<packaging>jar</packaging>

<name>VillagerOptimizer</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void setOptimizationType(OptimizationType type) {

@Override
public @NotNull OptimizationType getOptimizationType() {
if (!isOptimized()) {
if (isOptimized()) {
return OptimizationType.valueOf(dataContainer.get(Keyring.VillagerOptimizer.OPTIMIZATION_TYPE.getKey(), PersistentDataType.STRING));
} else {
return OptimizationType.NONE;
Expand Down

0 comments on commit b29f4af

Please sign in to comment.