Fixed issue where blocked audio que played when no item was held

This commit is contained in:
Collin Smith 2019-04-01 03:37:27 -07:00
parent 33504d74d6
commit 3c71976972

View File

@ -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) {