mirror of
https://github.com/TeamMidnightDust/MidnightLib.git
synced 2025-12-16 09:15:10 +01:00
MidnightLib 1.5.1 for 1.20.4
- Port to 1.20.4 - Add back fancy list background - File size optimizations - Update tooling
This commit is contained in:
@@ -12,7 +12,7 @@ loom {
|
||||
|
||||
configurations {
|
||||
common
|
||||
shadowCommon // Don't use shadow from the shadow plugin because we don't want IDEA to index this.
|
||||
shadowCommon // Don't use shadow from the shadow plugin since it *excludes* files.
|
||||
compileClasspath.extendsFrom common
|
||||
runtimeClasspath.extendsFrom common
|
||||
developmentFabric.extendsFrom common
|
||||
@@ -25,8 +25,6 @@ dependencies {
|
||||
|
||||
common(project(path: ":common", configuration: "namedElements")) { transitive false }
|
||||
shadowCommon(project(path: ":common", configuration: "transformProductionFabric")) { transitive false }
|
||||
common(project(path: ":fabric-like", configuration: "namedElements")) { transitive false }
|
||||
shadowCommon(project(path: ":fabric-like", configuration: "transformProductionFabric")) { transitive false }
|
||||
}
|
||||
|
||||
processResources {
|
||||
@@ -41,17 +39,13 @@ shadowJar {
|
||||
exclude "architectury.common.json"
|
||||
|
||||
configurations = [project.configurations.shadowCommon]
|
||||
classifier "dev-shadow"
|
||||
archiveClassifier = "dev-shadow"
|
||||
}
|
||||
|
||||
remapJar {
|
||||
injectAccessWidener = true
|
||||
input.set shadowJar.archiveFile
|
||||
dependsOn shadowJar
|
||||
classifier null
|
||||
}
|
||||
|
||||
jar {
|
||||
classifier "dev"
|
||||
}
|
||||
|
||||
sourcesJar {
|
||||
@@ -69,7 +63,7 @@ components.java {
|
||||
publishing {
|
||||
publications {
|
||||
mavenFabric(MavenPublication) {
|
||||
artifactId = rootProject.archives_base_name + "-" + project.name
|
||||
artifactId = archives_base_name + "-" + project.name
|
||||
from components.java
|
||||
}
|
||||
}
|
||||
@@ -78,4 +72,4 @@ publishing {
|
||||
repositories {
|
||||
// Add repositories to publish to here.
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package eu.midnightdust.fabric.core;
|
||||
|
||||
import eu.midnightdust.core.MidnightLibClient;
|
||||
import eu.midnightdust.lib.util.MidnightColorUtil;
|
||||
import net.fabricmc.api.ClientModInitializer;
|
||||
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
|
||||
|
||||
public class MidnightLibClientFabric implements ClientModInitializer {
|
||||
@Override
|
||||
public void onInitializeClient() {
|
||||
MidnightLibClient.onInitializeClient();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package eu.midnightdust.fabric.core;
|
||||
|
||||
import eu.midnightdust.core.MidnightLibClient;
|
||||
import eu.midnightdust.core.MidnightLibServer;
|
||||
import net.fabricmc.api.ClientModInitializer;
|
||||
import net.fabricmc.api.DedicatedServerModInitializer;
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
|
||||
public class MidnightLibFabric implements ClientModInitializer, DedicatedServerModInitializer {
|
||||
@Override @Environment(EnvType.CLIENT)
|
||||
public void onInitializeClient() {
|
||||
MidnightLibClient.onInitializeClient();
|
||||
}
|
||||
@Override @Environment(EnvType.SERVER)
|
||||
public void onInitializeServer() {
|
||||
MidnightLibServer.onInitializeServer();
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
package eu.midnightdust.fabric.core;
|
||||
|
||||
import eu.midnightdust.core.MidnightLibServer;
|
||||
import net.fabricmc.api.DedicatedServerModInitializer;
|
||||
|
||||
public class MidnightLibServerFabric implements DedicatedServerModInitializer {
|
||||
@Override
|
||||
public void onInitializeServer() {
|
||||
MidnightLibServer.onInitializeServer();
|
||||
}
|
||||
}
|
||||
@@ -21,10 +21,10 @@
|
||||
"environment": "*",
|
||||
"entrypoints": {
|
||||
"client": [
|
||||
"eu.midnightdust.fabric.core.MidnightLibClientFabric"
|
||||
"eu.midnightdust.fabric.core.MidnightLibFabric"
|
||||
],
|
||||
"server": [
|
||||
"eu.midnightdust.fabric.core.MidnightLibServerFabric"
|
||||
"eu.midnightdust.fabric.core.MidnightLibFabric"
|
||||
],
|
||||
"modmenu": [
|
||||
"eu.midnightdust.lib.config.AutoModMenu"
|
||||
|
||||
Reference in New Issue
Block a user