OpenJDK 11
This commit is contained in:
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@@ -8,7 +8,7 @@
|
|||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="21" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="corretto-11" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/out" />
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
6
pom.xml
6
pom.xml
@@ -6,11 +6,11 @@
|
|||||||
|
|
||||||
<groupId>me.finn.unlegitlibrary</groupId>
|
<groupId>me.finn.unlegitlibrary</groupId>
|
||||||
<artifactId>unlegitlibrary</artifactId>
|
<artifactId>unlegitlibrary</artifactId>
|
||||||
<version>1.3.1</version>
|
<version>1.3.1-OpenJDK11</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>21</maven.compiler.source>
|
<maven.compiler.source>11</maven.compiler.source>
|
||||||
<maven.compiler.target>21</maven.compiler.target>
|
<maven.compiler.target>11</maven.compiler.target>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
@@ -39,8 +39,8 @@ public class AddonInfo {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if (!(obj instanceof AddonInfo other)) return false;
|
if (!(obj instanceof AddonInfo)) return false;
|
||||||
|
AddonInfo other = (AddonInfo) obj;
|
||||||
return other.name.equalsIgnoreCase(name) && other.version.equalsIgnoreCase(version) && other.author.equalsIgnoreCase(author);
|
return other.name.equalsIgnoreCase(name) && other.version.equalsIgnoreCase(version) && other.author.equalsIgnoreCase(author);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -202,7 +202,8 @@ public class NetworkClient extends DefaultMethodsOverrider {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (received instanceof Integer id) {
|
if (received instanceof Integer) {
|
||||||
|
int id = (Integer) received;
|
||||||
if (command.equalsIgnoreCase("s2c_connect")) {
|
if (command.equalsIgnoreCase("s2c_connect")) {
|
||||||
clientID = id;
|
clientID = id;
|
||||||
command = "";
|
command = "";
|
||||||
|
@@ -127,7 +127,8 @@ public class ClientHandler {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (received instanceof Integer id) {
|
if (received instanceof Integer) {
|
||||||
|
int id = (Integer) received;
|
||||||
if (command.equalsIgnoreCase("c2s_connect")) {
|
if (command.equalsIgnoreCase("c2s_connect")) {
|
||||||
if (clientID == id) continue;
|
if (clientID == id) continue;
|
||||||
command = "";
|
command = "";
|
||||||
|
@@ -76,7 +76,8 @@ public class Quaternion {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final boolean equals(Object obj) {
|
public final boolean equals(Object obj) {
|
||||||
if (!(obj instanceof Quaternion quaternion)) return false;
|
if (!(obj instanceof Quaternion)) return false;
|
||||||
|
Quaternion quaternion = (Quaternion) obj;
|
||||||
return quaternion.x == x && quaternion.y == y && quaternion.z == z && quaternion.w == w;
|
return quaternion.x == x && quaternion.y == y && quaternion.z == z && quaternion.w == w;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -100,7 +100,8 @@ public class Vector2 {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final boolean equals(Object obj) {
|
public final boolean equals(Object obj) {
|
||||||
if (!(obj instanceof Vector2 vector2)) return false;
|
if (!(obj instanceof Vector2)) return false;
|
||||||
|
Vector2 vector2 = (Vector2) obj;
|
||||||
return vector2.x == x && vector2.y == y;
|
return vector2.x == x && vector2.y == y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -124,7 +124,8 @@ public class Vector3 {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final boolean equals(Object obj) {
|
public final boolean equals(Object obj) {
|
||||||
if (!(obj instanceof Vector3 vector3)) return false;
|
if (!(obj instanceof Vector3)) return false;
|
||||||
|
Vector3 vector3 = (Vector3) obj;
|
||||||
return vector3.x == x && vector3.y == y && vector3.z == z;
|
return vector3.x == x && vector3.y == y && vector3.z == z;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user