mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-18 03:25:38 +00:00
fix outofboundsexception
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user