mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Fix issue with multiple selection list
This commit is contained in:
@@ -276,7 +276,7 @@ public final class ItemListView<T extends InventoryItem> extends ItemView<T> {
|
||||
|
||||
@Override
|
||||
public boolean tap(Entry<T, Integer> value, float x, float y, int count) {
|
||||
int index = list.getIndexOf(value);
|
||||
Integer index = list.getIndexOf(value);
|
||||
if (allowMultipleSelections) {
|
||||
if (selectedIndices.contains(index)) {
|
||||
selectedIndices.remove(index);
|
||||
|
||||
Reference in New Issue
Block a user