Skip to content

Commit ae86695

Browse files
committed
fix: forge
1 parent 61bec08 commit ae86695

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

common/src/main/java/link/e4mc/mixin/PlayerListMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public abstract class PlayerListMixin {
2828

2929
@Shadow public abstract MinecraftServer getServer();
3030

31-
@Inject(method = "/^<init>$/", at = @At("TAIL"))
31+
@Inject(method = "<init>", at = @At("TAIL"))
3232
void injectListLoads(CallbackInfo ci) {
3333
if (Config.INSTANCE.restoreDedicatedCommands.value()) {
3434
setUsingWhiteList(Config.INSTANCE.useWhiteList.value());

forge/build.gradle.kts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,6 @@ dependencies {
3838
shadowBundle(project(":common", configuration = "noRemap"))
3939
}
4040

41-
tasks.withType(org.gradle.jvm.tasks.Jar::class) {
42-
archiveBaseName.set(modId)
43-
manifest.attributes.run {
44-
this["FMLCorePluginContainsFMLMod"] = "true"
45-
this["ForceLoadAsMod"] = "true"
46-
this["TweakClass"] = "org.spongepowered.asm.launch.MixinTweaker"
47-
this["MixinConfigs"] = "${modId}.mixins.json"
48-
}
49-
}
50-
5141
tasks.named<RemapJarTask>("remapJar") {
5242
dependsOn(tasks.shadowJar)
5343
asJar {

0 commit comments

Comments
 (0)