mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-19 20:00:05 +00:00
Fix broken voiding
This commit is contained in:
1 parent
a90956ce1a
commit
93baf4fa4b
1 file changed
+4
-2
@@ -949,7 +949,8 @@ public class TileEntityController extends TileEntity implements IDrawerGroup, IP
|
||||
IDrawer drawer = candidateGroup.getDrawer(candidate.slot);
|
||||
|
||||
if (insert) {
|
||||
if (!(drawer.canItemBeStored(stack) && (drawer.isEmpty() || drawer.getRemainingCapacity() > 0)))
|
||||
boolean voiding = (drawer instanceof IVoidable) ? ((IVoidable) drawer).isVoid() : false;
|
||||
if (!(drawer.canItemBeStored(stack) && (drawer.isEmpty() || drawer.getRemainingCapacity() > 0 || voiding)))
|
||||
continue;
|
||||
}
|
||||
else {
|
||||
@@ -978,7 +979,8 @@ public class TileEntityController extends TileEntity implements IDrawerGroup, IP
|
||||
}
|
||||
|
||||
if (insert) {
|
||||
if (!(drawer.canItemBeStored(stack) && (drawer.isEmpty() || drawer.getRemainingCapacity() > 0)))
|
||||
boolean voiding = (drawer instanceof IVoidable) ? ((IVoidable) drawer).isVoid() : false;
|
||||
if (!(drawer.canItemBeStored(stack) && (drawer.isEmpty() || drawer.getRemainingCapacity() > 0 || voiding)))
|
||||
continue;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in new issue
Block a user