mirror of
https://github.com/Xiao-MoMi/Custom-Nameplates.git
synced 2025-12-19 15:09:23 +00:00
3.0.26
This commit is contained in:
@@ -137,13 +137,22 @@ public class VersionHelper {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the server version is newer than 1.21.5
|
||||
*
|
||||
* @return True if the version is newer than 1.21.5, otherwise false.
|
||||
*/
|
||||
public static boolean isVersionNewerThan1_21_5() {
|
||||
return version >= 21.49f;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the server version is newer than 1.21.4
|
||||
*
|
||||
* @return True if the version is newer than 1.21.4, otherwise false.
|
||||
*/
|
||||
public static boolean isVersionNewerThan1_21_4() {
|
||||
return version >= 21.39;
|
||||
return version >= 21.39f;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -152,7 +161,7 @@ public class VersionHelper {
|
||||
* @return True if the version is newer than 1.21.2, otherwise false.
|
||||
*/
|
||||
public static boolean isVersionNewerThan1_21_2() {
|
||||
return version >= 21.19;
|
||||
return version >= 21.19f;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -161,7 +170,7 @@ public class VersionHelper {
|
||||
* @return True if the version is newer than 1.20.5, otherwise false.
|
||||
*/
|
||||
public static boolean isVersionNewerThan1_20_5() {
|
||||
return version >= 20.49;
|
||||
return version >= 20.49f;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -170,7 +179,7 @@ public class VersionHelper {
|
||||
* @return True if the version is newer than 1.20.4, otherwise false.
|
||||
*/
|
||||
public static boolean isVersionNewerThan1_20_4() {
|
||||
return version >= 20.39;
|
||||
return version >= 20.39f;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -179,7 +188,7 @@ public class VersionHelper {
|
||||
* @return True if the version is newer than 1.19.4, otherwise false.
|
||||
*/
|
||||
public static boolean isVersionNewerThan1_19_4() {
|
||||
return version >= 19.39;
|
||||
return version >= 19.39f;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -188,7 +197,7 @@ public class VersionHelper {
|
||||
* @return True if the version is newer than 1.20.2, otherwise false.
|
||||
*/
|
||||
public static boolean isVersionNewerThan1_20_2() {
|
||||
return version >= 20.19;
|
||||
return version >= 20.19f;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -197,7 +206,7 @@ public class VersionHelper {
|
||||
* @return True if the version is newer than 1.20, otherwise false.
|
||||
*/
|
||||
public static boolean isVersionNewerThan1_20() {
|
||||
return version >= 20;
|
||||
return version >= 20f;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user