feat: 1.21.1 backport
This commit is contained in:
parent
fd17833a16
commit
ae2245c4bd
8 changed files with 20 additions and 20 deletions
|
|
@ -26,8 +26,8 @@ dependencies {
|
|||
modImplementation "dev.architectury:architectury:$rootProject.architectury_api_version"
|
||||
|
||||
// Mod implementations
|
||||
modImplementation "maven.modrinth:sodium:mc1.21.4-0.6.3-fabric" // Sodium
|
||||
modImplementation "maven.modrinth:sodium-extra:mc1.21.4-0.6.1+fabric" // Sodium Extra
|
||||
modImplementation "maven.modrinth:iris:1.8.5+1.21.4-fabric" // Iris
|
||||
modImplementation "maven.modrinth:sodium:mc1.21.1-0.6.9-fabric" // Sodium
|
||||
modImplementation "maven.modrinth:sodium-extra:mc1.21.1-0.6.0+fabric" // Sodium Extra
|
||||
modImplementation "maven.modrinth:iris:1.8.8+1.21.1-fabric" // Iris
|
||||
modImplementation "maven.modrinth:distanthorizons:2.2.1-a-1.21.1" // Distant Horizons
|
||||
}
|
||||
|
|
|
|||
|
|
@ -70,8 +70,8 @@ public class OptionsToggleList extends ContainerObjectSelectionList<OptionsToggl
|
|||
}
|
||||
}
|
||||
|
||||
protected int scrollBarX() {
|
||||
return super.scrollBarX() + 15;
|
||||
protected int getScrollbarPosition() {
|
||||
return super.getScrollbarPosition() + 15;
|
||||
}
|
||||
|
||||
public int getRowWidth() {
|
||||
|
|
@ -113,7 +113,7 @@ public class OptionsToggleList extends ContainerObjectSelectionList<OptionsToggl
|
|||
public void render(GuiGraphics guiGraphics, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta) {
|
||||
Font fontRenderer = OptionsToggleList.this.minecraft.font;
|
||||
|
||||
int posX = OptionsToggleList.this.scrollBarX() - this.toggleButton.getWidth() - 10;
|
||||
int posX = OptionsToggleList.this.getScrollbarPosition() - this.toggleButton.getWidth() - 10;
|
||||
int posY = y - 2;
|
||||
int textY = y + entryHeight / 2;
|
||||
|
||||
|
|
|
|||
|
|
@ -58,8 +58,8 @@ public class ProfilesList extends ContainerObjectSelectionList<ProfilesList.Prof
|
|||
this.children().forEach(ProfileEntry::checkLoaded);
|
||||
}
|
||||
|
||||
protected int scrollBarX() {
|
||||
return super.scrollBarX() + 15;
|
||||
protected int getScrollbarPosition() {
|
||||
return super.getScrollbarPosition() + 15;
|
||||
}
|
||||
|
||||
public int getRowWidth() {
|
||||
|
|
@ -105,7 +105,7 @@ public class ProfilesList extends ContainerObjectSelectionList<ProfilesList.Prof
|
|||
public void render(GuiGraphics guiGraphics, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta) {
|
||||
Font fontRenderer = ProfilesList.this.minecraft.font;
|
||||
|
||||
int posX = ProfilesList.this.scrollBarX() - this.loadButton.getWidth() - 10;
|
||||
int posX = ProfilesList.this.getScrollbarPosition() - this.loadButton.getWidth() - 10;
|
||||
int posY = y - 2;
|
||||
int textY = y + entryHeight / 2;
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ dependencies {
|
|||
modImplementation "dev.architectury:architectury-fabric:$rootProject.architectury_api_version"
|
||||
|
||||
// Mod Menu API
|
||||
modImplementation("com.terraformersmc:modmenu:13.0.2")
|
||||
modImplementation("com.terraformersmc:modmenu:11.0.3")
|
||||
|
||||
common(project(path: ':common', configuration: 'namedElements')) { transitive false }
|
||||
shadowBundle project(path: ':common', configuration: 'transformProductionFabric')
|
||||
|
|
|
|||
|
|
@ -26,9 +26,9 @@
|
|||
],
|
||||
"depends": {
|
||||
"fabricloader": ">=0.15.11",
|
||||
"minecraft": "~1.21",
|
||||
"minecraft": "~1.21.1",
|
||||
"java": ">=21",
|
||||
"architectury": ">=15.0.3",
|
||||
"architectury": ">=13.0.8",
|
||||
"fabric-api": "*"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,10 +11,10 @@ archives_name=optionsprofiles
|
|||
enabled_platforms=fabric,neoforge
|
||||
|
||||
# Minecraft properties
|
||||
minecraft_version=1.21.4
|
||||
minecraft_version=1.21.1
|
||||
|
||||
# Dependencies
|
||||
architectury_api_version = 15.0.3
|
||||
fabric_loader_version=0.16.9
|
||||
fabric_api_version=0.111.0+1.21.4
|
||||
neoforge_version=21.4.9-beta
|
||||
architectury_api_version=13.0.8
|
||||
fabric_loader_version=0.16.10
|
||||
fabric_api_version=0.115.1+1.21.1
|
||||
neoforge_version=21.1.128
|
||||
|
|
@ -23,14 +23,14 @@ side = "BOTH"
|
|||
[[dependencies.optionsprofiles]]
|
||||
modId = "minecraft"
|
||||
type = "required"
|
||||
versionRange = "[1.21,)"
|
||||
versionRange = "[1.21.1,)"
|
||||
ordering = "NONE"
|
||||
side = "BOTH"
|
||||
|
||||
[[dependencies.optionsprofiles]]
|
||||
modId = "architectury"
|
||||
type = "required"
|
||||
versionRange = "[15.0.3,)"
|
||||
versionRange = "[13.0.8,)"
|
||||
ordering = "AFTER"
|
||||
side = "BOTH"
|
||||
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@ include("common")
|
|||
include("fabric")
|
||||
include("neoforge")
|
||||
|
||||
rootProject.name = "optionsprofiles-v1.4-1.21.4"
|
||||
rootProject.name = "optionsprofiles-v1.4-1.21.1"
|
||||
|
|
|
|||
Loading…
Reference in a new issue