Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
|
e9127678bd |
10 changed files with 33 additions and 48 deletions
|
@ -4,14 +4,15 @@
|
||||||
<component name="GradleSettings">
|
<component name="GradleSettings">
|
||||||
<option name="linkedExternalProjectsSettings">
|
<option name="linkedExternalProjectsSettings">
|
||||||
<GradleProjectSettings>
|
<GradleProjectSettings>
|
||||||
|
<option name="delegatedBuild" value="true" />
|
||||||
|
<option name="testRunner" value="GRADLE" />
|
||||||
|
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
||||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||||
|
<option name="gradleJvm" value="jbr-17" />
|
||||||
<option name="modules">
|
<option name="modules">
|
||||||
<set>
|
<set>
|
||||||
<option value="$PROJECT_DIR$" />
|
<option value="$PROJECT_DIR$" />
|
||||||
<option value="$PROJECT_DIR$/versions/1.18.2-fabric" />
|
<option value="$PROJECT_DIR$/versions/1.20.4-fabric" />
|
||||||
<option value="$PROJECT_DIR$/versions/1.18.2-forge" />
|
|
||||||
<option value="$PROJECT_DIR$/versions/1.19.4-fabric" />
|
|
||||||
<option value="$PROJECT_DIR$/versions/1.19.4-forge" />
|
|
||||||
</set>
|
</set>
|
||||||
</option>
|
</option>
|
||||||
</GradleProjectSettings>
|
</GradleProjectSettings>
|
||||||
|
|
|
@ -1,24 +1,14 @@
|
||||||
plugins {
|
plugins {
|
||||||
id("xyz.deftu.gradle.multiversion-root")
|
id("dev.deftu.gradle.multiversion-root")
|
||||||
}
|
}
|
||||||
|
|
||||||
preprocess {
|
preprocess {
|
||||||
val fabric11904 = createNode("1.19.4-fabric", 11903, "yarn")
|
val fabric12004 = createNode("1.20.4-fabric", 12004, "yarn")
|
||||||
val fabric11802 = createNode("1.18.2-fabric", 11802, "yarn")
|
|
||||||
val forge11904 = createNode("1.19.4-forge", 11903, "srg")
|
|
||||||
val forge11802 = createNode("1.18.2-forge", 11802, "srg")
|
|
||||||
|
|
||||||
fabric11904.link(forge11904)
|
|
||||||
forge11904.link(forge11802)
|
|
||||||
forge11802.link(fabric11802)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val releaseAllVersions by tasks.registering {
|
val releaseAllVersions by tasks.registering {
|
||||||
listOf(
|
listOf(
|
||||||
"1.18.2-fabric",
|
"1.20.4-fabric"
|
||||||
"1.19.4-fabric",
|
|
||||||
"1.18.2-forge",
|
|
||||||
"1.19.4-forge"
|
|
||||||
).forEach { version ->
|
).forEach { version ->
|
||||||
dependsOn(":$version:releaseProject")
|
dependsOn(":$version:releaseProject")
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,5 +3,5 @@ org.gradle.jvmargs=-Xmx2G
|
||||||
|
|
||||||
mod.name=e4mc
|
mod.name=e4mc
|
||||||
mod.id=e4mc_minecraft
|
mod.id=e4mc_minecraft
|
||||||
mod.version=4.0.1
|
mod.version=4.0.2
|
||||||
mod.group=vg.skye
|
mod.group=vg.skye
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,5 +1,5 @@
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
|
@ -24,8 +24,8 @@ pluginManagement {
|
||||||
kotlin("jvm") version(kotlin)
|
kotlin("jvm") version(kotlin)
|
||||||
kotlin("plugin.serialization") version(kotlin)
|
kotlin("plugin.serialization") version(kotlin)
|
||||||
|
|
||||||
val epgt = "1.17.1"
|
val epgt = "1.22.2"
|
||||||
id("xyz.deftu.gradle.multiversion-root") version(epgt)
|
id("dev.deftu.gradle.multiversion-root") version(epgt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,10 +35,7 @@ rootProject.name = projectName
|
||||||
rootProject.buildFileName = "build.gradle.kts"
|
rootProject.buildFileName = "build.gradle.kts"
|
||||||
|
|
||||||
listOf(
|
listOf(
|
||||||
"1.18.2-fabric",
|
"1.20.4-fabric"
|
||||||
"1.19.4-fabric",
|
|
||||||
"1.18.2-forge",
|
|
||||||
"1.19.4-forge"
|
|
||||||
).forEach { version ->
|
).forEach { version ->
|
||||||
include(":$version")
|
include(":$version")
|
||||||
project(":$version").apply {
|
project(":$version").apply {
|
||||||
|
|
|
@ -16,7 +16,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
import vg.skye.e4mc_minecraft.E4mcClient;
|
import vg.skye.e4mc_minecraft.E4mcClient;
|
||||||
import vg.skye.e4mc_minecraft.QuiclimeHandler;
|
import vg.skye.e4mc_minecraft.QuiclimeHandler;
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ public abstract class ServerNetworkIoMixin {
|
||||||
private static final ThreadLocal<Boolean> initializingE4mc = ThreadLocal.withInitial(() -> false);
|
private static final ThreadLocal<Boolean> initializingE4mc = ThreadLocal.withInitial(() -> false);
|
||||||
|
|
||||||
@Shadow
|
@Shadow
|
||||||
public abstract void bind(@Nullable InetAddress address, int port) throws IOException;
|
public abstract void bind(InetAddress address, int port) throws IOException;
|
||||||
|
|
||||||
@Inject(method = "bind", at = @At("HEAD"))
|
@Inject(method = "bind", at = @At("HEAD"))
|
||||||
private void bind(InetAddress address, int port, CallbackInfo ci) {
|
private void bind(InetAddress address, int port, CallbackInfo ci) {
|
||||||
|
|
|
@ -52,7 +52,7 @@ object CommandsHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun sendMessageToSource(text: Text, source: ServerCommandSource) {
|
private fun sendMessageToSource(text: Text, source: ServerCommandSource) {
|
||||||
source.sendFeedback(text, true)
|
source.sendFeedback({text}, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun sendErrorToSource(text: Text, source: ServerCommandSource) {
|
private fun sendErrorToSource(text: Text, source: ServerCommandSource) {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"id": "${mod_id}",
|
"id": "e4mc_minecraft",
|
||||||
"version": "${mod_version}",
|
"version": "4.0.2",
|
||||||
"name": "${mod_name}",
|
"name": "e4mc",
|
||||||
"description": "Open a LAN server to anyone, anywhere, anytime.",
|
"description": "Open a LAN server to anyone, anywhere, anytime.",
|
||||||
"authors": [
|
"authors": [
|
||||||
"skyevg"
|
"skyevg"
|
||||||
|
@ -25,13 +25,13 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"mixins": [
|
"mixins": [
|
||||||
"${mod_id}.mixins.json"
|
"e4mc_minecraft.mixins.json"
|
||||||
],
|
],
|
||||||
"depends": {
|
"depends": {
|
||||||
"fabric": "*",
|
"fabric": "*",
|
||||||
"fabricloader": ">=0.14.9",
|
"fabricloader": ">=0.15.6",
|
||||||
"fabric-language-kotlin": "*",
|
"fabric-language-kotlin": "*",
|
||||||
"minecraft": "${mc_version == "1.19.4" ? ">=1.19" : ">=1.18 <1.19"}",
|
"minecraft": "1.20.4",
|
||||||
"java": ">=16"
|
"java": ">=16"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,17 +1,17 @@
|
||||||
import com.modrinth.minotaur.dependencies.DependencyType
|
import com.modrinth.minotaur.dependencies.DependencyType
|
||||||
import com.modrinth.minotaur.dependencies.ModDependency
|
import com.modrinth.minotaur.dependencies.ModDependency
|
||||||
import org.gradle.configurationcache.extensions.capitalized
|
import org.gradle.configurationcache.extensions.capitalized
|
||||||
import xyz.deftu.gradle.tools.minecraft.CurseRelation
|
import dev.deftu.gradle.tools.minecraft.CurseRelation
|
||||||
import xyz.deftu.gradle.tools.minecraft.CurseRelationType
|
import dev.deftu.gradle.tools.minecraft.CurseRelationType
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
java
|
java
|
||||||
kotlin("jvm")
|
kotlin("jvm")
|
||||||
id("xyz.deftu.gradle.multiversion")
|
id("dev.deftu.gradle.multiversion")
|
||||||
id("xyz.deftu.gradle.tools")
|
id("dev.deftu.gradle.tools")
|
||||||
id("xyz.deftu.gradle.tools.minecraft.loom")
|
id("dev.deftu.gradle.tools.minecraft.loom")
|
||||||
id("xyz.deftu.gradle.tools.shadow")
|
id("dev.deftu.gradle.tools.shadow")
|
||||||
id("xyz.deftu.gradle.tools.minecraft.releases")
|
id("dev.deftu.gradle.tools.minecraft.releases")
|
||||||
}
|
}
|
||||||
|
|
||||||
val bundle by configurations.creating {
|
val bundle by configurations.creating {
|
||||||
|
@ -35,13 +35,11 @@ java {
|
||||||
|
|
||||||
toolkitReleases {
|
toolkitReleases {
|
||||||
gameVersions.set(when (mcData.version) {
|
gameVersions.set(when (mcData.version) {
|
||||||
11904 -> listOf("1.19", "1.19.1", "1.19.2", "1.19.3", "1.19.4", "1.20", "1.20.1")
|
12004 -> listOf("1.20.4")
|
||||||
11802 -> listOf("1.18", "1.18.1", "1.18.2")
|
|
||||||
else -> listOf()
|
else -> listOf()
|
||||||
})
|
})
|
||||||
releaseName.set("[${when (mcData.version) {
|
releaseName.set("[${when (mcData.version) {
|
||||||
11904 -> "1.19-"
|
12004 -> "1.20.4"
|
||||||
11802 -> "1.18.x"
|
|
||||||
else -> mcData.versionStr
|
else -> mcData.versionStr
|
||||||
}}] [${mcData.loader.name.capitalized()}] ${modData.version}")
|
}}] [${mcData.loader.name.capitalized()}] ${modData.version}")
|
||||||
if (mcData.isFabric) {
|
if (mcData.isFabric) {
|
||||||
|
@ -97,8 +95,7 @@ dependencies {
|
||||||
modImplementation(
|
modImplementation(
|
||||||
"net.fabricmc.fabric-api:fabric-api:${
|
"net.fabricmc.fabric-api:fabric-api:${
|
||||||
when (mcData.version) {
|
when (mcData.version) {
|
||||||
11904 -> "0.78.0+1.19.4"
|
12004 -> "0.94.0+1.20.4"
|
||||||
11802 -> "0.76.0+1.18.2"
|
|
||||||
else -> throw IllegalStateException("Invalid MC version: ${mcData.version}")
|
else -> throw IllegalStateException("Invalid MC version: ${mcData.version}")
|
||||||
}
|
}
|
||||||
}"
|
}"
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1.19.4-fabric
|
1.20.4-fabric
|
||||||
|
|
Loading…
Reference in a new issue