Skip to content

Commit d9499aa

Browse files
committed
Bump Gradle, loom, malilib, etc.
1 parent 9c81510 commit d9499aa

File tree

7 files changed

+51
-8
lines changed

7 files changed

+51
-8
lines changed

build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'fabric-loom' version '1.14-SNAPSHOT'
2+
id 'fabric-loom' version '1.15-SNAPSHOT'
33
id 'maven-publish'
44
}
55

@@ -13,7 +13,9 @@ repositories {
1313
maven { url = 'https://maven.terraformersmc.com/releases/'
1414
content {includeGroupAndSubgroups("com.terraformersmc")}
1515
}
16-
maven { url = 'https://jitpack.io' }
16+
maven { url = 'https://jitpack.io'
17+
content {includeGroupAndSubgroups("com.github")}
18+
}
1719
}
1820

1921
dependencies {
@@ -28,6 +30,7 @@ dependencies {
2830

2931
// Fabric API. This is technically optional, but you probably want it anyway.
3032
//modCompile "net.fabricmc.fabric-api:fabric-api:" + project.fabric_version
33+
include(implementation("me.fallenbreath:conditional-mixin-fabric:${project.conditionalmixin_version}"))
3134

3235
modCompileOnly "com.terraformersmc:modmenu:${project.mod_menu_version}"
3336
// modRuntimeOnly 'me.fallenbreath:mixin-auditor:0.1.0'

gradle.properties

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@ author = masa
99
mod_file_name = itemscroller-fabric
1010

1111
# Current mod version
12-
mod_version = 0.30.2-sakura.1
12+
mod_version = 0.30.2-sakura.2
1313

1414
# Required malilib version
15-
malilib_version = 7b4f5c657a
15+
malilib_version = 059239c8ef
1616

1717
# Minecraft, Fabric Loader and API and mappings versions
1818
minecraft_version_out = 1.21.11
1919
minecraft_version = 1.21.11
2020
mappings_version = 1.21.11+build.1
2121

2222
fabric_loader_version = 0.18.4
23-
mod_menu_version = 17.0.0-beta.1
24-
# fabric_api_version = 0.141.1+1.21.11
23+
mod_menu_version = 17.0.0-beta.2
24+
# fabric_api_version = 0.141.3+1.21.11
25+
conditionalmixin_version = 0.6.4

gradle/wrapper/gradle-wrapper.jar

542 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package fi.dy.masa.itemscroller.compat.mixin;
2+
3+
import java.util.List;
4+
import java.util.Set;
5+
6+
import me.fallenbreath.conditionalmixin.api.mixin.RestrictiveMixinConfigPlugin;
7+
8+
import fi.dy.masa.itemscroller.ItemScroller;
9+
10+
public class ItemscrollerMixinConfigPlugin extends RestrictiveMixinConfigPlugin
11+
{
12+
@Override
13+
protected void onRestrictionCheckFailed(String mixinClassName, String reason)
14+
{
15+
ItemScroller.LOGGER.warn("Disabled mixin '{}' due to: '{}'", mixinClassName, reason);
16+
}
17+
18+
@Override
19+
public String getRefMapperConfig()
20+
{
21+
return "";
22+
}
23+
24+
@Override
25+
public void acceptTargets(Set<String> myTargets, Set<String> otherTargets)
26+
{
27+
}
28+
29+
@Override
30+
public List<String> getMixins()
31+
{
32+
return null;
33+
}
34+
}

src/main/java/fi/dy/masa/itemscroller/gui/GuiConfigs.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public void initGui()
3838

3939
for (ConfigGuiTab tab : ConfigGuiTab.VALUES)
4040
{
41+
if (!this.useAllTab() && tab == ConfigGuiTab.ALL) continue;
4142
x += this.createButton(x, y, -1, tab);
4243
}
4344
}
@@ -126,7 +127,10 @@ public void actionPerformedWithButton(ButtonBase button, int mouseButton)
126127
GuiConfigs.tab = this.tab;
127128

128129
this.parent.reCreateListWidget(); // apply the new config width
129-
this.parent.getListWidget().resetScrollbarPosition();
130+
if (this.parent.getListWidget() != null)
131+
{
132+
this.parent.getListWidget().resetScrollbarPosition();
133+
}
130134
this.parent.initGui();
131135
}
132136
}

src/main/resources/mixins.itemscroller.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"required": true,
33
"package": "fi.dy.masa.itemscroller.mixin",
4+
"plugin": "fi.dy.masa.itemscroller.compat.mixin.ItemscrollerMixinConfigPlugin",
45
"compatibilityLevel": "JAVA_21",
56
"minVersion": "0.8",
67
"mixins": [

0 commit comments

Comments
 (0)