Skip to content

Commit b851169

Browse files
committed
bump
1 parent 62e1bc9 commit b851169

File tree

6 files changed

+14
-117
lines changed

6 files changed

+14
-117
lines changed

build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@file:Suppress("UnstableApiUsage", "PropertyName")
22

33
import dev.deftu.gradle.utils.GameSide
4-
import dev.deftu.gradle.utils.MinecraftVersion
4+
import dev.deftu.gradle.utils.includeOrShade
55

66
plugins {
77
java
@@ -10,15 +10,15 @@ plugins {
1010
id("dev.deftu.gradle.tools") // Applies several configurations to things such as the Java version, project name/version, etc.
1111
id("dev.deftu.gradle.tools.resources") // Applies resource processing so that we can replace tokens, such as our mod name/version, in our resources.
1212
id("dev.deftu.gradle.tools.bloom") // Applies the Bloom plugin, which allows us to replace tokens in our source files, such as being able to use `@MOD_VERSION` in our source files.
13-
id("dev.deftu.gradle.tools.shadow") // Applies the Shadow plugin, which allows us to shade our dependencies into our mod JAR. This is NOT recommended for Fabric mods, but we have an *additional* configuration for those!
1413
id("dev.deftu.gradle.tools.minecraft.loom") // Applies the Loom plugin, which automagically configures Essential's Architectury Loom plugin for you.
14+
id("dev.deftu.gradle.tools.shadow") // Applies the Shadow plugin, which allows us to shade our dependencies into our mod JAR. This is NOT recommended for Fabric mods, but we have an *additional* configuration for those!
1515
id("dev.deftu.gradle.tools.minecraft.releases") // Applies the Minecraft auto-releasing plugin, which allows you to automatically release your mod to CurseForge and Modrinth.
1616
}
1717

1818
toolkitLoomHelper {
1919
useOneConfig {
20-
version = "1.0.0-alpha.49"
21-
loaderVersion = "1.1.0-alpha.35"
20+
version = "1.0.0-alpha.62"
21+
loaderVersion = "1.1.0-alpha.44"
2222

2323
usePolyMixin = true
2424
polyMixinVersion = "0.8.4+build.2"
@@ -45,5 +45,5 @@ toolkitLoomHelper {
4545
}
4646

4747
dependencies {
48-
implementation(shade("gs.mclo:api:3.0.1")!!)
48+
implementation(includeOrShade("gs.mclo:api:3.0.1")!!)
4949
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ org.gradle.jvmargs=-Xmx2G
88
mod.group=org.polyfrost
99
mod.id=crashpatch
1010
mod.name=CrashPatch
11-
mod.version=2.0.1
11+
mod.version=2.1.0-alpha.1

main.py

Lines changed: 0 additions & 93 deletions
This file was deleted.

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pluginManagement {
2424

2525
plugins {
2626
kotlin("jvm") version("2.0.0")
27-
id("dev.deftu.gradle.multiversion-root") version("2.18.1")
27+
id("dev.deftu.gradle.multiversion-root") version("2.22.0")
2828
}
2929
}
3030

src/main/kotlin/org/polyfrost/crashpatch/mixins/MixinPlugin.kt renamed to src/main/kotlin/org/polyfrost/crashpatch/plugin/MixinPlugin.kt

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
package org.polyfrost.crashpatch.mixins
2-
3-
//#if MC >= 1.16.5 || FABRIC
4-
//$$ import org.objectweb.asm.tree.ClassNode
5-
//#endif
1+
package org.polyfrost.crashpatch.plugin
62

73
import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin
84
import org.spongepowered.asm.mixin.extensibility.IMixinInfo
95

6+
import org.objectweb.asm.tree.ClassNode
7+
108
class MixinPlugin : IMixinConfigPlugin {
119

1210
override fun getMixins(): MutableList<String> {
@@ -33,11 +31,7 @@ class MixinPlugin : IMixinConfigPlugin {
3331

3432
override fun preApply(
3533
targetClassName: String,
36-
//#if MC >= 1.16.5 || FABRIC
37-
//$$ targetClass: ClassNode,
38-
//#else
39-
targetClass: org.spongepowered.asm.lib.tree.ClassNode,
40-
//#endif
34+
targetClass: ClassNode,
4135
mixinClassName: String,
4236
mixinInfo: IMixinInfo
4337
) {
@@ -46,15 +40,11 @@ class MixinPlugin : IMixinConfigPlugin {
4640

4741
override fun postApply(
4842
targetClassName: String,
49-
//#if MC >= 1.16.5 || FABRIC
50-
//$$ targetClass: ClassNode,
51-
//#else
52-
targetClass: org.spongepowered.asm.lib.tree.ClassNode,
53-
//#endif
43+
targetClass: ClassNode,
5444
mixinClassName: String,
5545
mixinInfo: IMixinInfo
5646
) {
5747
// no-op
5848
}
5949

60-
}
50+
}

src/main/resources/mixins.crashpatch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compatibilityLevel": "JAVA_8",
33
"minVersion": "0.7",
44
"package": "org.polyfrost.crashpatch.mixin",
5-
"plugin": "org.polyfrost.crashpatch.mixins.MixinPlugin",
5+
"plugin": "org.polyfrost.crashpatch.plugin.MixinPlugin",
66
"refmap": "mixin.crashpatch.refmap.json",
77
"injectors": {
88
"maxShiftBy": 5

0 commit comments

Comments
 (0)