Skip to content

Commit

Permalink
chore: add MC 1.20.1 as a single subproject
Browse files Browse the repository at this point in the history
  • Loading branch information
70CentsApple committed Jul 14, 2024
1 parent 69d4f6a commit 879ecb8
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 10 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,12 @@ jobs:
- game_version: "1.19.4"
target_game_versions: "1.19,1.19.1,1.19.2,1.19.3,1.19.4"
formatted_version_name: "1.19.x"
- game_version: "1.20.1"
target_game_versions: "1.20,1.20.1"
formatted_version_name: "1.20(.1)"
- game_version: "1.20.4"
target_game_versions: "1.20,1.20.1,1.20.2,1.20.3,1.20.4"
formatted_version_name: "1.20(.1,2,3,4)"
target_game_versions: "1.20.2,1.20.3,1.20.4"
formatted_version_name: "1.20.2(3,4)"
- game_version: "1.20.6"
target_game_versions: "1.20.5,1.20.6"
formatted_version_name: "1.20.5(6)"
Expand Down
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ preprocess {
def mc117 = createNode('1.17.1', 1_17_01, 'yarn')
def mc118 = createNode('1.18.2', 1_18_02, 'yarn')
def mc119 = createNode('1.19.4', 1_19_04, 'yarn')
def mc12001 = createNode('1.20.1', 1_20_01, 'yarn')
def mc12004 = createNode('1.20.4', 1_20_04, 'yarn')
def mc12006 = createNode('1.20.6', 1_20_06, 'yarn')
def mc121 = createNode('1.21', 1_21_00, 'yarn')

mc116.link(mc117, null)
mc117.link(mc118, null)
mc118.link(mc119, null)
mc119.link(mc12004, null)
mc119.link(mc12001, null)
mc12001.link(mc12004, null)
mc12004.link(mc12006, null)
mc12006.link(mc121, null)
}
Expand Down
1 change: 1 addition & 0 deletions settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"1.17.1",
"1.18.2",
"1.19.4",
"1.20.1",
"1.20.4",
"1.20.6",
"1.21"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private static Text getTextToAppend(Style style) {
texts.add(TextUtils.trans("texts.PreviewClickEvents.clickEvent"));
ClickEvent clickEvent = style.getClickEvent();
Text value = TextUtils.of(clickEvent.getValue()).copy().formatted(Formatting.GREEN);
//#if MC>=12000
//#if MC>=12002
String action = clickEvent.getAction().asString();
//#else
//$$ String action = clickEvent.getAction().getName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,13 @@ protected void init() {
this.setInitialFocus(this.keywordField);

this.chatUnitListWidget = new ChatUnitListWidget(MinecraftClient.getInstance(), this.width - 60, this.height - 120, 65, textRenderer.fontHeight + 3, this.keywordField.getText(), this.chatUnitListWidget);
//#if MC>=12000
//#if MC>=12002
this.chatUnitListWidget.setX(30);
//#else
//$$ this.chatUnitListWidget.setLeftPos(30);
//#endif

//#if MC>=12005
//#elseif MC>=12000
//$$ this.chatUnitListWidget.setRenderBackground(false);
//#elseif MC>=11700
//$$ this.chatUnitListWidget.setRenderBackground(false);
//$$ this.chatUnitListWidget.setRenderHorizontalShadows(false);
Expand Down Expand Up @@ -309,7 +307,7 @@ public SearchModes getSearchMode() {
}

public ChatUnitListWidget(MinecraftClient client, int width, int height, int y, int itemHeight, String keyword, @Nullable ChatUnitListWidget copyFrom) {
//#if MC>=12000
//#if MC>=12002
super(client, width, height, y, itemHeight);
//#else
//$$ super(client, width, height, y, y + height, itemHeight);
Expand All @@ -332,7 +330,7 @@ public int getRowWidth() {

@Override
protected int getScrollbarX() {
//#if MC>=12000
//#if MC>=12002
int x = this.getX();
//#else
//$$ int x = this.left;
Expand All @@ -356,7 +354,7 @@ public Tooltip getTooltip() {
}
//#endif

//#if MC>=12000
//#if MC>=12002
protected void appendClickableNarrations(NarrationMessageBuilder builder) {
if (getHoveredEntry() != null) {
builder.put(NarrationPart.TITLE, getHoveredEntry().getText());
Expand Down
9 changes: 9 additions & 0 deletions versions/1.20.1/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Fabric Properties
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.10
# Fabric Mod Metadata
minecraft_dependency=1.20.x
# Dependencies
fabric_api_version=0.92.2+1.20.1
cloth_config_version=11.1.118
mod_menu_version=7.2.2

0 comments on commit 879ecb8

Please sign in to comment.