mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-26 23:13:25 +00:00
insertion check should be LOCK_EMPTY
This commit is contained in:
1 parent
1c9e98afee
commit
92284a618a
2 files changed
+2
-2
No files matched your search
@@ -71,7 +71,7 @@ public class CompDrawerData extends BaseDrawerData implements IFractionalDrawer,
|
||||
|
||||
@Override
|
||||
public boolean canItemBeStored (ItemStack itemPrototype) {
|
||||
if (getStoredItemPrototype() == null && !isLocked(LockAttribute.LOCK_POPULATED))
|
||||
if (getStoredItemPrototype() == null && !isLocked(LockAttribute.LOCK_EMPTY))
|
||||
return true;
|
||||
|
||||
return areItemsEqual(itemPrototype);
|
||||
|
||||
@@ -135,7 +135,7 @@ public class DrawerData extends BaseDrawerData implements IVoidable, IShroudable
|
||||
|
||||
@Override
|
||||
public boolean canItemBeStored (ItemStack itemPrototype) {
|
||||
if (protoStack == nullStack && !isLocked(LockAttribute.LOCK_POPULATED))
|
||||
if (protoStack == nullStack && !isLocked(LockAttribute.LOCK_EMPTY))
|
||||
return true;
|
||||
|
||||
return areItemsEqual(itemPrototype);
|
||||
|
||||
Reference in new issue
Block a user