Skip to content

Commit 656bfb4

Browse files
Update to 1.21.4
1 parent 688dcad commit 656bfb4

File tree

7 files changed

+38
-19
lines changed

7 files changed

+38
-19
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## Skyblock Mod 1.10.7 for 1.21.4
2+
3+
Support for 1.21.4
4+
5+
16
## Skyblock Mod 1.10.6 for 1.21.3
27

38
Support for 1.21.3

build.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'fabric-loom' version '1.8-SNAPSHOT'
2+
id 'fabric-loom' version '1.9-SNAPSHOT'
33
id 'maven-publish'
44
id "me.modmuss50.mod-publish-plugin" version "0.8.1"
55
}
@@ -113,17 +113,17 @@ publishMods {
113113
projectSlug = "skyblockmod" // Required for discord webhook
114114
accessToken = providers.environmentVariable("CURSEFORGE_TOKEN")
115115
minecraftVersionRange {
116-
start = "1.21.2"
117-
end = "1.21.3"
116+
start = "1.21.4"
117+
end = "1.21.4"
118118
}
119119
requires("fabric-api")
120120
}
121121
modrinth {
122122
projectId = "GTIrlvJk"
123123
accessToken = providers.environmentVariable("MODRINTH_TOKEN")
124124
minecraftVersionRange {
125-
start = "1.21.2"
126-
end = "1.21.3"
125+
start = "1.21.4"
126+
end = "1.21.4"
127127
}
128128
}
129129
github {

gradle.properties

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ org.gradle.jvmargs = -Xmx1G
33

44
# Fabric Properties
55
# check these on https://fabricmc.net/versions.html
6-
minecraft_version = 1.21.3
7-
yarn_mappings = 1.21.3+build.2
6+
minecraft_version = 1.21.4
7+
yarn_mappings = 1.21.4+build.1
88
loader_version = 0.16.9
99

1010
# Mod Properties
11-
mod_version = 1.10.6
11+
mod_version = 1.10.7
1212
maven_group = com.kevinthegreat.skyblockmod
1313
archives_base_name = skyblock-mod
1414

1515
# Dependencies
16-
fabric_version = 0.110.0+1.21.3
16+
fabric_version = 0.110.5+1.21.4
1717
# https://modrinth.com/mod/modmenu/versions
18-
modmenu_version = 12.0.0-beta.1
18+
modmenu_version = 13.0.0-beta.1
1919
# https://modrinth.com/mod/skyblocker-liap/versions
2020
skyblocker_version = 1.23.0-beta.1+1.21.3
2121
# https://mvnrepository.com/artifact/org.eclipse.jgit/org.eclipse.jgit

gradle/wrapper/gradle-wrapper.jar

130 Bytes
Binary file not shown.

gradlew

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717
#
18+
# SPDX-License-Identifier: Apache-2.0
19+
#
1820

1921
##############################################################################
2022
#
@@ -84,7 +86,8 @@ done
8486
# shellcheck disable=SC2034
8587
APP_BASE_NAME=${0##*/}
8688
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87-
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90+
' "$PWD" ) || exit
8891

8992
# Use the maximum available, or set MAX_FD != -1 to use that value.
9093
MAX_FD=maximum

gradlew.bat

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
@rem See the License for the specific language governing permissions and
1414
@rem limitations under the License.
1515
@rem
16+
@rem SPDX-License-Identifier: Apache-2.0
17+
@rem
1618

1719
@if "%DEBUG%"=="" @echo off
1820
@rem ##########################################################################

src/main/java/com/kevinthegreat/skyblockmod/waypoint/DropdownWidget.java

+17-8
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ public class DropdownWidget<T> extends ElementListWidget<DropdownWidget.Entry<T>
2121
protected boolean open;
2222

2323
public DropdownWidget(MinecraftClient minecraftClient, int x, int y, int width, int maxHeight, List<T> entries, Consumer<T> selectCallback, T selected) {
24-
super(minecraftClient, width, Math.min((entries.size() + 1) * ENTRY_HEIGHT + 8, maxHeight), y, ENTRY_HEIGHT);
24+
super(minecraftClient, width, Math.min((entries.size() + 1) * ENTRY_HEIGHT + 8, maxHeight), y, ENTRY_HEIGHT, ENTRY_HEIGHT + 4);
2525
setX(x);
2626
this.entries = entries;
2727
this.selectCallback = selectCallback;
2828
this.selected = selected;
29-
setRenderHeader(true, ENTRY_HEIGHT + 4);
3029
for (T entry : entries) {
3130
addEntry(new Entry<>(this, entry));
3231
}
@@ -43,9 +42,19 @@ public int getRowWidth() {
4342
}
4443

4544
@Override
46-
protected boolean clickedHeader(int x, int y) {
47-
open = !open;
48-
return true;
45+
protected int getScrollbarX() {
46+
return getRowRight() + 2;
47+
}
48+
49+
@Override
50+
public boolean mouseClicked(double mouseX, double mouseY, int button) {
51+
if (super.mouseClicked(mouseX, mouseY, button)) return true;
52+
53+
if (this.getEntryAtPosition(mouseX, mouseY) == null && (open || this.isMouseOver(mouseX, mouseY))) {
54+
open = !open;
55+
return true;
56+
}
57+
return false;
4958
}
5059

5160
@Override
@@ -58,8 +67,8 @@ public void renderWidget(DrawContext context, int mouseX, int mouseY, float delt
5867
context.getMatrices().push();
5968
context.getMatrices().translate(0, 0, 100);
6069

61-
int y = getY() - (int) getScrollAmount();
62-
int height = getMaxPosition();
70+
int y = getY() - (int) getScrollY();
71+
int height = getContentsHeightWithPadding();
6372

6473
context.fill(getX(), y, getX() + width, y + headerHeight, 0xFF000000);
6574
context.drawHorizontalLine(getX(), getX() + width, y, 0xFFFFFFFF);
@@ -95,7 +104,7 @@ public boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmou
95104
protected void select(T entry) {
96105
selected = entry;
97106
open = false;
98-
setScrollAmount(0);
107+
setScrollY(0);
99108
if (selected != prevSelected) {
100109
selectCallback.accept(entry);
101110
prevSelected = selected;

0 commit comments

Comments
 (0)