@@ -23,6 +23,12 @@ mossyDependencies {
2323 additional {
2424 override(" mossyCompileOnly" , " flashback" )
2525 override(" mossyCompileOnly" , " replaymod" )
26+ override(" mossyCompileOnly" , " iris" )
27+ override(" mossyCompileOnly" , " sodium" )
28+ override(" mossyCompileOnly" , " controlling" )
29+ override(" mossyCompileOnly" , " searchables" )
30+ override(" mossyCompileOnly" , " cloth-config" )
31+ override(" mossyCompileOnly" , " geckolib" )
2632
2733 disable(" fabric-permissions-api" )
2834 }
@@ -42,7 +48,7 @@ dependencies {
4248 if (fabric) {
4349 def fpa = prop(" build.fabric-permissions-api" )
4450 if (fpa != " unknown" ) {
45- include (mossyImplementation(" me.lucko:fabric-permissions-api:${ fpa} " )){
51+ mossyInclude (mossyImplementation(" me.lucko:fabric-permissions-api:${ fpa} " )){
4652 exclude(group : " net.fabricmc.fabric-api" )
4753 }
4854 }
@@ -52,7 +58,7 @@ dependencies {
5258
5359 if (forge) {
5460 annotationProcessor(" net.fabricmc:sponge-mixin:0.16.5+mixin.0.8.7" )
55- modImplementation (" maven.modrinth:mixinbooster:0.1.2+1.20.1" )
61+ mossyImplementation (" maven.modrinth:mixinbooster:0.1.2+1.20.1" )
5662 }
5763}
5864
@@ -73,18 +79,20 @@ if (fabric) {
7379 }
7480 }
7581
76- fabricApi {
77- configureTests {
78- createSourceSet = true
79- modId = " patpat-mod-test-${ project.name} "
80- enableGameTests = true // Default is true
81- enableClientGameTests = true // Default is true
82- eula = true // By setting this to true, you agree to the Minecraft EULA.
82+ if (sc. current. parsed. matches(" >=26.1" )) {
83+ fabricApi {
84+ configureTests {
85+ createSourceSet = true
86+ modId = " patpat-mod-test-${ project.name} "
87+ enableGameTests = true // Default is true
88+ enableClientGameTests = true // Default is true
89+ eula = true // By setting this to true, you agree to the Minecraft EULA.
90+ }
8391 }
84- }
8592
86- tasks. named(" runClientGameTest" , JavaExec ) {
87- jvmArgs " -ea"
93+ tasks. named(" runClientGameTest" , JavaExec ) {
94+ jvmArgs " -ea"
95+ }
8896 }
8997
9098 configurations. configureEach {
@@ -129,7 +137,10 @@ stonecutter {
129137 replace(" RenderType" , " RenderTypes" )
130138 }
131139
132- constants[" debug_mode" ] = false
140+ replacements. string(current. parsed >= " 26.1" ) {
141+ replace(" net.minecraft.client.gui.GuiGraphics" , " net.minecraft.client.gui.GuiGraphicsExtractor" )
142+ replace(" GuiGraphics" , " GuiGraphicsExtractor" )
143+ }
133144}
134145
135146stonecutter. filters. exclude(" **/*.accesswidener" )
0 commit comments