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 {
id 'fabric-loom' version '1.11-SNAPSHOT'
id 'fabric-loom' version '1.14-SNAPSHOT'
id 'maven-publish'
}
@@ -82,6 +82,6 @@ java {
jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
rename { "${it}_${archives_base_name}" }
}
}
+5 -5
View File
@@ -2,14 +2,14 @@
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.21.9
yarn_mappings=1.21.9+build.1
loader_version=0.17.2
minecraft_version=1.21.11
yarn_mappings=1.21.11+build.4
loader_version=0.17.3
# Mod Properties
mod_version=2.3.0
maven_group=de.shiewk
archives_base_name=Widgets
# Dependencies
# check this on https://modmuss50.me/fabric.html
fabric_version=0.134.0+1.21.9
modmenu_version=16.0.0-rc.1
fabric_version=0.139.4+1.21.11
modmenu_version=17.0.0-beta.1
@@ -111,7 +111,7 @@ public class WidgetListWidget extends ScrollableWidget {
Click newClick = new Click(mouseX, mouseY, click.buttonInfo());
for (Element element : elements) {
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;
}
}
@@ -33,7 +33,7 @@ public class WidgetUtils {
}
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) {