Skip to content

Commit

Permalink
Publish support for LexForge 1.20.2
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Sep 22, 2023
1 parent 3633ad2 commit 0206a64
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies {
}

architectury {
common("fabric")
common("fabric", "forge")
}

task sourcesJar(type: Jar, dependsOn: classes) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,10 @@ public void lateRender(GuiGraphics graphics, int mouseX, int mouseY, float delta
ScissorsHandler.INSTANCE.scissor(new Rectangle(lastRectangle.x, lastRectangle.y + lastRectangle.height + 1, cWidth - 6, last10Height - 1));
double yy = lastRectangle.y + lastRectangle.height - scroll;
for (SelectionCellElement<R> cell : currentElements) {
if (yy + getCellCreator().getCellHeight() >= lastRectangle.y + lastRectangle.height && yy <= lastRectangle.y + lastRectangle.height + last10Height + 1)
if (yy + getCellCreator().getCellHeight() >= lastRectangle.y + lastRectangle.height && yy <= lastRectangle.y + lastRectangle.height + last10Height + 1) {
graphics.fill(lastRectangle.x + 1, (int) yy, lastRectangle.x + getCellCreator().getCellWidth(), (int) yy + getCellCreator().getCellHeight(), 0xFF000000);
cell.render(graphics, mouseX, mouseY, lastRectangle.x, (int) yy, getMaxScrollPosition() > 6 ? getCellCreator().getCellWidth() - 6 : getCellCreator().getCellWidth(), getCellCreator().getCellHeight(), delta);
else
} else
cell.dontRender(graphics, delta);
yy += getCellCreator().getCellHeight();
}
Expand Down
2 changes: 1 addition & 1 deletion fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"id": "cloth-config",
"name": "Cloth Config v11",
"name": "Cloth Config v12",
"description": "An API for config screens.",
"version": "${version}",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ publishing {

unifiedPublishing {
project {
displayName = "[Forge $rootProject.supported_version] v$project.version"
displayName = "[LexForge $rootProject.supported_version] v$project.version"
releaseType = "release"
gameVersions = ["1.20", "1.20.1"]
gameLoaders = ["forge"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@
import net.minecraftforge.fml.IExtensionPoint;
import net.minecraftforge.fml.ModLoadingContext;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.network.NetworkConstants;

@Mod(ClothConfigInitializer.MOD_ID)
public class ClothConfigForge {
public ClothConfigForge() {
ModLoadingContext.get().registerExtensionPoint(IExtensionPoint.DisplayTest.class, () -> new IExtensionPoint.DisplayTest(() -> NetworkConstants.IGNORESERVERONLY, (a, b) -> true));
ModLoadingContext.get().registerExtensionPoint(IExtensionPoint.DisplayTest.class, () -> new IExtensionPoint.DisplayTest(() -> IExtensionPoint.DisplayTest.IGNORESERVERONLY, (a, b) -> true));
DistExecutor.safeRunWhenOn(Dist.CLIENT, () -> ClothConfigForgeDemo::registerModsPage);
}
}
2 changes: 1 addition & 1 deletion forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "GNU LGPLv3"
[[mods]]
modId = "cloth_config"
version = "${version}"
displayName = "Cloth Config v10 API"
displayName = "Cloth Config v12 API"
description = '''
An API for config screens.
'''
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fabric_loader_version=0.14.22
fabric_api_version=0.89.0+1.20.2
mod_menu_version=8.0.0-beta.2

forge_version=46.0.1
forge_version=48.0.1

curseforge_id=348521
modrinth_id=9s6osm5g
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ pluginManagement {

include("common")
include("fabric")
//include("forge")
include("forge")

rootProject.name = 'cloth-config'

0 comments on commit 0206a64

Please sign in to comment.