Compare commits

..

2 Commits
main ... main

Author SHA1 Message Date
me 27f0af2afc Merge pull request 'Added sv_se.json' (#51) from el97/e4mc_minecraft:main into main
9 months ago
el97 810adc433a Added sv_se.json
9 months ago

@ -4,15 +4,14 @@
<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.20.4-fabric" />
<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" />
</set>
</option>
</GradleProjectSettings>

@ -1,14 +1,24 @@
plugins {
id("dev.deftu.gradle.multiversion-root")
id("xyz.deftu.gradle.multiversion-root")
}
preprocess {
val fabric12004 = createNode("1.20.4-fabric", 12004, "yarn")
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 releaseAllVersions by tasks.registering {
listOf(
"1.20.4-fabric"
"1.18.2-fabric",
"1.19.4-fabric",
"1.18.2-forge",
"1.19.4-forge"
).forEach { version ->
dependsOn(":$version:releaseProject")
}

@ -3,5 +3,5 @@ org.gradle.jvmargs=-Xmx2G
mod.name=e4mc
mod.id=e4mc_minecraft
mod.version=4.0.2
mod.version=4.0.1
mod.group=vg.skye

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-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.22.2"
id("dev.deftu.gradle.multiversion-root") version(epgt)
val epgt = "1.17.1"
id("xyz.deftu.gradle.multiversion-root") version(epgt)
}
}
@ -35,7 +35,10 @@ rootProject.name = projectName
rootProject.buildFileName = "build.gradle.kts"
listOf(
"1.20.4-fabric"
"1.18.2-fabric",
"1.19.4-fabric",
"1.18.2-forge",
"1.19.4-forge"
).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(InetAddress address, int port) throws IOException;
public abstract void bind(@Nullable 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) {

@ -0,0 +1,7 @@
{
"text.e4mc_minecraft.domainAssigned": "Lokalt spel startat på domän [%s]",
"text.e4mc_minecraft.closeServer": "Lokalt spel är inte publikt öppet längre",
"text.e4mc_minecraft.serverAlreadyClosed": "Lokalt spel är inte öppet",
"text.e4mc_minecraft.clickToStop": " (Klicka här för att stoppa)",
"text.e4mc_minecraft.error": "Ett fel uppstod i e4mc"
}

@ -1,8 +1,8 @@
{
"schemaVersion": 1,
"id": "e4mc_minecraft",
"version": "4.0.2",
"name": "e4mc",
"id": "${mod_id}",
"version": "${mod_version}",
"name": "${mod_name}",
"description": "Open a LAN server to anyone, anywhere, anytime.",
"authors": [
"skyevg"
@ -25,13 +25,13 @@
]
},
"mixins": [
"e4mc_minecraft.mixins.json"
"${mod_id}.mixins.json"
],
"depends": {
"fabric": "*",
"fabricloader": ">=0.15.6",
"fabricloader": ">=0.14.9",
"fabric-language-kotlin": "*",
"minecraft": "1.20.4",
"minecraft": "${mc_version == "1.19.4" ? ">=1.19" : ">=1.18 <1.19"}",
"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 dev.deftu.gradle.tools.minecraft.CurseRelation
import dev.deftu.gradle.tools.minecraft.CurseRelationType
import xyz.deftu.gradle.tools.minecraft.CurseRelation
import xyz.deftu.gradle.tools.minecraft.CurseRelationType
plugins {
java
kotlin("jvm")
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")
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")
}
val bundle by configurations.creating {
@ -35,11 +35,13 @@ java {
toolkitReleases {
gameVersions.set(when (mcData.version) {
12004 -> listOf("1.20.4")
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")
else -> listOf()
})
releaseName.set("[${when (mcData.version) {
12004 -> "1.20.4"
11904 -> "1.19-"
11802 -> "1.18.x"
else -> mcData.versionStr
}}] [${mcData.loader.name.capitalized()}] ${modData.version}")
if (mcData.isFabric) {
@ -95,7 +97,8 @@ dependencies {
modImplementation(
"net.fabricmc.fabric-api:fabric-api:${
when (mcData.version) {
12004 -> "0.94.0+1.20.4"
11904 -> "0.78.0+1.19.4"
11802 -> "0.76.0+1.18.2"
else -> throw IllegalStateException("Invalid MC version: ${mcData.version}")
}
}"

@ -1 +1 @@
1.20.4-fabric
1.19.4-fabric

Loading…
Cancel
Save