mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-14 01:14:06 +00:00
Fix hopper drawer bug
This commit is contained in:
1 parent
2b1878ed10
commit
4392b15381
1 file changed
+7
-6
@@ -181,13 +181,14 @@ public class StorageInventory implements IDrawerInventory
|
||||
return;
|
||||
|
||||
IInventoryAdapter adapter = (IInventoryAdapter)drawer;
|
||||
|
||||
if (drawer.isEmpty()) {
|
||||
setInventorySlotContents(drawer, item);
|
||||
return;
|
||||
}
|
||||
|
||||
switch (getInventorySlotType(slot)) {
|
||||
case INPUT:
|
||||
if (drawer.isEmpty()) {
|
||||
setInventorySlotContents(drawer, item);
|
||||
return;
|
||||
}
|
||||
|
||||
adapter.setInStack(item);
|
||||
break;
|
||||
case OUTPUT:
|
||||
@@ -300,4 +301,4 @@ public class StorageInventory implements IDrawerInventory
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user