mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-20 12:20:00 +00:00
fix crashes
This commit is contained in:
1 parent
0ce4118e36
commit
03709d8efa
2 files changed
+3
-2
No files matched your search
@@ -8,7 +8,7 @@ import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class AnimatedItemStack {
|
||||
|
||||
private static final int steep = 5;
|
||||
private static final int steep = 10;
|
||||
private static final float scaleSpeed = 0.1f;
|
||||
|
||||
private int lastPosX = -1;
|
||||
|
||||
@@ -1001,13 +1001,14 @@ public class BookmarkPanel extends PanelWidget {
|
||||
if (mouseOverSlot != null) {
|
||||
sortedStackIndex = mouseOverSlot.slotIndex;
|
||||
} else {
|
||||
sortedStackIndex = grid.realItems.size();
|
||||
sortedStackIndex = grid.size();
|
||||
}
|
||||
// dummy item
|
||||
addOrRemoveItem(
|
||||
new ItemStack(Items.paper).setStackDisplayName("this is a dummy item"), sortedStackIndex);
|
||||
} else if (mouseOverSlot != null && mouseOverSlot.slotIndex != sortedStackIndex) {
|
||||
final BookmarkGrid sortedGrid = namespaces.get(sortedNamespaceIndex);
|
||||
if (sortedStackIndex >= grid.size()) sortedStackIndex = grid.size() - 1;
|
||||
if (sortedGrid.getViewMode() == BookmarkViewMode.DEFAULT) {
|
||||
sortedGrid.moveItem(sortedStackIndex, mouseOverSlot.slotIndex);
|
||||
sortedStackIndex = mouseOverSlot.slotIndex;
|
||||
|
||||
Reference in new issue
Block a user