1
mirror of https://github.com/Shiewk/Widgets.git synced 2026-04-28 11:34:17 +02:00
This commit is contained in:
Shy
2026-01-05 14:54:46 +01:00
parent f372a9aace
commit 1d77a0f01b
4 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
plugins { plugins {
id 'fabric-loom' version '1.11-SNAPSHOT' id 'fabric-loom' version '1.14-SNAPSHOT'
id 'maven-publish' id 'maven-publish'
} }
@@ -82,6 +82,6 @@ java {
jar { jar {
from("LICENSE") { from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" } rename { "${it}_${archives_base_name}" }
} }
} }
+5 -5
View File
@@ -2,14 +2,14 @@
org.gradle.jvmargs=-Xmx1G org.gradle.jvmargs=-Xmx1G
# Fabric Properties # Fabric Properties
# check these on https://modmuss50.me/fabric.html # check these on https://modmuss50.me/fabric.html
minecraft_version=1.21.9 minecraft_version=1.21.11
yarn_mappings=1.21.9+build.1 yarn_mappings=1.21.11+build.4
loader_version=0.17.2 loader_version=0.17.3
# Mod Properties # Mod Properties
mod_version=2.3.0 mod_version=2.3.0
maven_group=de.shiewk maven_group=de.shiewk
archives_base_name=Widgets archives_base_name=Widgets
# Dependencies # Dependencies
# check this on https://modmuss50.me/fabric.html # check this on https://modmuss50.me/fabric.html
fabric_version=0.134.0+1.21.9 fabric_version=0.139.4+1.21.11
modmenu_version=16.0.0-rc.1 modmenu_version=17.0.0-beta.1
@@ -111,7 +111,7 @@ public class WidgetListWidget extends ScrollableWidget {
Click newClick = new Click(mouseX, mouseY, click.buttonInfo()); Click newClick = new Click(mouseX, mouseY, click.buttonInfo());
for (Element element : elements) { for (Element element : elements) {
if (element.mouseClicked(newClick, doubled)){ if (element.mouseClicked(newClick, doubled)){
client.getSoundManager().play(PositionedSoundInstance.master(SoundEvents.UI_BUTTON_CLICK, 1.0F)); client.getSoundManager().play(PositionedSoundInstance.ui(SoundEvents.UI_BUTTON_CLICK, 1.0F));
return true; return true;
} }
} }
@@ -33,7 +33,7 @@ public class WidgetUtils {
} }
public static void playSound(SoundEvent ev){ public static void playSound(SoundEvent ev){
MinecraftClient.getInstance().getSoundManager().play(PositionedSoundInstance.master(ev, 1f, 1f)); MinecraftClient.getInstance().getSoundManager().play(PositionedSoundInstance.ui(ev, 1f, 1f));
} }
public static int fadeColor(int color1, int color2, double delta) { public static int fadeColor(int color1, int color2, double delta) {