mirror of
https://github.com/Shiewk/Widgets.git
synced 2026-04-28 11:34:17 +02:00
1.21.11
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user