Skip to content

Commit

Permalink
Fix java compile
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHua269 committed Dec 14, 2024
1 parent e4b448c commit b428505
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions patches/server/0051-C2ME-Native-math-noise-optimizations.patch
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@ Date: Sat, 14 Dec 2024 15:10:10 +0800
Subject: [PATCH] C2ME Native math noise optimizations


diff --git a/build.gradle.kts b/build.gradle.kts
index 97c1116fd2695cf4061f428910d4fcb4b605edcc..84ccac8ef4cd49c8547670dbca11a003bfe575f7 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -97,6 +97,13 @@ tasks.withType<JavaCompile> {
}
// Pufferfish End

+// Lumionl start - C2ME Native noise math optimizations
+tasks.withType<JavaCompile> {
+ val compilerArgs = options.compilerArgs
+ compilerArgs.add("--enable-preview")
+}
+// Lumionl end
+
tasks.jar {
archiveClassifier.set("dev")

diff --git a/src/main/java/com/ishland/c2me/opts/natives_math/common/Bindings.java b/src/main/java/com/ishland/c2me/opts/natives_math/common/Bindings.java
new file mode 100644
index 0000000000000000000000000000000000000000..e94fbc2afcca53465889822eee41e9df4c7cd390
Expand Down

0 comments on commit b428505

Please sign in to comment.