fix outofboundsexception

This commit is contained in:
くぁーりぃ committed 2022-09-10 22:32:09 +09:00
1 parent a136fdd717
commit d01fb80c54
1 file changed
+1 -1
@@ -985,7 +985,7 @@ public class BookmarkPanel extends PanelWidget {
if (draggedStack != null) {
if (!contains(mouseX,mouseY)) {
if(sortedStackIndex != -1){
if(sortedStackIndex != -1 && sortedStackIndex < grid.realItems.size()){
((BookmarkGrid)grid).removeItem(sortedStackIndex);
sortedStackIndex = -1;
}