Prevent crash when Control clicking a selected card

This commit is contained in:
drdev
2014-02-05 03:26:01 +00:00
parent 737b2eb0f7
commit 4554d94f32

View File

@@ -144,9 +144,9 @@ public class ImageView<T extends InventoryItem> extends ItemView<T> {
if (e.getButton() != 1) {
return true;
}
if (e.isControlDown() && allowMultipleSelections) {
if (e.isControlDown()) {
item.selected = false;
selectedIndices.remove(item.index);
selectedIndices.remove((Object)item.index);
onSelectionChange();
item.scrollIntoView();
return true;