mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +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
|
@Override
|
||||||
public boolean tap(Entry<T, Integer> value, float x, float y, int count) {
|
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 (allowMultipleSelections) {
|
||||||
if (selectedIndices.contains(index)) {
|
if (selectedIndices.contains(index)) {
|
||||||
selectedIndices.remove(index);
|
selectedIndices.remove(index);
|
||||||
|
|||||||
Reference in New Issue
Block a user