mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-01 02:14:32 +07:00
Fixed issue where blocked audio que played when no item was held
This commit is contained in:
parent
33504d74d6
commit
3c71976972
@ -81,13 +81,13 @@ public class ItemGrid extends Group {
|
||||
public void clicked(InputEvent event, float x, float y) {
|
||||
if (event.isHandled()) return;
|
||||
ItemGrid.this.mouseMoved();
|
||||
Item cursor = Riiablo.cursor.getItem();
|
||||
if (blocked) {
|
||||
Riiablo.audio.play("sorceress_impossible_1", false);
|
||||
if (cursor != null) Riiablo.audio.play("sorceress_impossible_1", false);
|
||||
event.handle();
|
||||
return;
|
||||
}
|
||||
|
||||
Item cursor = Riiablo.cursor.getItem();
|
||||
if (cursor != null) {
|
||||
Riiablo.audio.play(cursor.getDropSound(), true);
|
||||
if (swap != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user