mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-12 08:27:37 +00:00
Small bug fixes
This commit is contained in:
1 parent
5bbcc570f9
commit
2d18dcf42b
2 files changed
+5
-7
No files matched your search
@@ -153,9 +153,9 @@ public class ItemsGrid
|
||||
validColumn = true;
|
||||
|
||||
for (int r = 0; r < rows; r++) {
|
||||
|
||||
if (!slotValid(gui, r, c) && !invalidSlotMap[columns * r + c]) {
|
||||
invalidSlotMap[columns * r + c] = true;
|
||||
final int idx = columns * r + c;
|
||||
if (!slotValid(gui, r, c) && idx >= 0 && idx < invalidSlotMap.length && !invalidSlotMap[idx]) {
|
||||
invalidSlotMap[idx] = true;
|
||||
validColumn = false;
|
||||
perPage--;
|
||||
}
|
||||
@@ -194,7 +194,7 @@ public class ItemsGrid
|
||||
|
||||
public boolean isInvalidSlot(int idx)
|
||||
{
|
||||
return invalidSlotMap[idx] == true;
|
||||
return invalidSlotMap[idx];
|
||||
}
|
||||
|
||||
public void draw(int mousex, int mousey)
|
||||
|
||||
Reference in new issue
Block a user