Skip to content

Commit 9425efe

Browse files
TitleAPI 1.8.1 - Fixes internal api mapping being flipped (#24)
1 parent b1bb5c1 commit 9425efe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.connorlinfoot</groupId>
88
<artifactId>TitleAPI</artifactId>
9-
<version>1.8</version>
9+
<version>1.8.1</version>
1010

1111
<properties>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

src/main/java/com/connorlinfoot/titleapi/InternalAPIMapping.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ enum InternalAPIMapping {
1717
static InternalTitleAPI create() {
1818
MinecraftVersion version = MinecraftVersion.get();
1919
for (InternalAPIMapping thisOne : values()) {
20-
if (thisOne.maxVersion.isLessThanOrEqualTo(version)) {
20+
if (version.isLessThanOrEqualTo(thisOne.maxVersion)) {
2121
try {
2222
return thisOne.apiClass.newInstance();
2323
} catch (InstantiationException | IllegalAccessException e) {

0 commit comments

Comments
 (0)