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