LAN multiplayer kinda works

This commit is contained in:
s809
2024-09-23 00:02:57 +05:00
parent 8e6010bbe5
commit 68097f61eb
3 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -179,6 +179,8 @@ subprojects { p ->
if (isMinecraftSubProject) {
annotationProcessor("systems.manifold:manifold-preprocessor:${rootProject.manifold_version}")
}
annotationProcessor("systems.manifold:manifold-strings:${rootProject.manifold_version}")
// Log4j
// TODO: Change to shadowMe later to work in the standalone jar
@@ -617,11 +619,11 @@ allprojects { p ->
tasks.withType(JavaCompile) {
if (isMinecraftSubProject) {
options.release = rootProject.java_version as Integer
options.compilerArgs += ["-Xplugin:Manifold"]
} else {
options.release = 8; // Core & Api should use Java 8 no matter what
//options.release = rootProject.java_version as Integer // But if you want to test some stuff, then this can be enabled
}
options.compilerArgs += ["-Xplugin:Manifold"]
options.encoding = "UTF-8"
}
@@ -84,7 +84,7 @@ public class SodiumAccessor implements ISodiumAccessor
sodiumPerformanceOptions = optionsClass.getDeclaredField("performance").get(basicOptions);
setFogOcclusionMethod = MethodHandles.lookup()
.findSetter(Class.forName(
"me.jellysquid.mods.sodium.client.gui.SodiumGameOptions$PerformanceSettings"),
"me.jellysquid.mods.sodium.client.gui.SodiumGameOptions\$PerformanceSettings"),
"useFogOcclusion", boolean.class);
// alternate option if referencing Sodium 0.5 directly
@@ -101,7 +101,7 @@ public class SodiumAccessor implements ISodiumAccessor
sodiumPerformanceOptions = optionsClass.getDeclaredField("performance").get(basicOptions);
setFogOcclusionMethod = MethodHandles.lookup()
.findSetter(Class.forName(
"net.caffeinemc.mods.sodium.client.gui.SodiumGameOptions$PerformanceSettings"),
"net.caffeinemc.mods.sodium.client.gui.SodiumGameOptions\$PerformanceSettings"),
"useFogOcclusion", boolean.class);
}
}