Add button sound when clicking on stacks in pattern panel
This commit is contained in:
parent
600463208f
commit
49a6d3a3e2
@ -373,9 +373,11 @@ public class MatterPanelScreen extends MatteryScreen<MatterPanelMenu> {
|
|||||||
if (open_task == null && open_pattern == null) {
|
if (open_task == null && open_pattern == null) {
|
||||||
if (hovered_pattern != null) {
|
if (hovered_pattern != null) {
|
||||||
openPattern(hovered_pattern);
|
openPattern(hovered_pattern);
|
||||||
|
Minecraft.getInstance().getSoundManager().play(SimpleSoundInstance.forUI(SoundEvents.UI_BUTTON_CLICK, 1.0F));
|
||||||
return true;
|
return true;
|
||||||
} else if (hovered_task != null) {
|
} else if (hovered_task != null) {
|
||||||
openTask(hovered_task);
|
openTask(hovered_task);
|
||||||
|
Minecraft.getInstance().getSoundManager().play(SimpleSoundInstance.forUI(SoundEvents.UI_BUTTON_CLICK, 1.0F));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user