Skip to content

Commit

Permalink
Fix stat bonuses for 1.18-
Browse files Browse the repository at this point in the history
  • Loading branch information
Sentropic committed Mar 8, 2024
1 parent c0686c7 commit 503ceab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</parent>

<properties>
<promccore.version>1.2.1-R0.1-SNAPSHOT</promccore.version>
<promccore.version>1.2.1-R0.2-SNAPSHOT</promccore.version>
<proskillapi.version>1.3.0-R0.1-SNAPSHOT</proskillapi.version>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

public class DependencyRequirement {

public static final String MIN_CORE_VERSION = "1.2.1-R0.1-SNAPSHOT";
public static final String MIN_CORE_VERSION = "1.2.1-R0.2-SNAPSHOT";

public static boolean meetsVersion(String requiredVersion, String providedVersion) {
List<Integer> required = splitVersion(requiredVersion);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public PersistentDataContainer toPrimitive(@NotNull StatBonus complex, @NotNull
} else if (complex.value.length == 2) {
container.set(VALUE, DataUT.DOUBLE_ARRAY, complex.value);
}
if (complex.percent) container.set(PERCENT, BOOLEAN, true);
if (complex.percent) container.set(PERCENT, DataUT.BOOLEAN, true);
if (complex.condition != null) {
if (complex.condition.requirement instanceof ClassRequirement) {
container.set(complex.condition.requirement.getKey(), DataUT.STRING_ARRAY, (String[]) complex.condition.value);
Expand Down Expand Up @@ -78,7 +78,7 @@ public StatBonus fromPrimitive(@NotNull PersistentDataContainer primitive, @NotN
condition = new Condition<>(ItemRequirements.getUserRequirement(ClassRequirement.class), classCondition);
}
}
return new StatBonus(array, array.length == 1 ? primitive.getOrDefault(PERCENT, BOOLEAN, false) : false, condition);
return new StatBonus(array, array.length == 1 ? primitive.getOrDefault(PERCENT, DataUT.BOOLEAN, false) : false, condition);
}
};

Expand Down

0 comments on commit 503ceab

Please sign in to comment.