diff --git a/src/com/jaquadro/minecraft/storagedrawers/api/storage/IDrawer.java b/src/com/jaquadro/minecraft/storagedrawers/api/storage/IDrawer.java index c88556c..9afb8b2 100644 --- a/src/com/jaquadro/minecraft/storagedrawers/api/storage/IDrawer.java +++ b/src/com/jaquadro/minecraft/storagedrawers/api/storage/IDrawer.java @@ -67,6 +67,7 @@ public interface IDrawer * Stack size and available capacity are not considered. For drawers that are not empty, this * method can allow ore-dictionary compatible items to be accepted into the drawer, as defined by what * the drawer considers to be an equivalent item. + * For drawers that are empty, locking status is considered. * * @param itemPrototype An ItemStack representing the type, metadata, and tags of an item. */ diff --git a/src/com/jaquadro/minecraft/storagedrawers/storage/CompDrawerData.java b/src/com/jaquadro/minecraft/storagedrawers/storage/CompDrawerData.java index 36105a8..50a24bf 100644 --- a/src/com/jaquadro/minecraft/storagedrawers/storage/CompDrawerData.java +++ b/src/com/jaquadro/minecraft/storagedrawers/storage/CompDrawerData.java @@ -71,7 +71,7 @@ public class CompDrawerData extends BaseDrawerData implements IFractionalDrawer, @Override public boolean canItemBeStored (ItemStack itemPrototype) { - if (getStoredItemPrototype() == null) + if (getStoredItemPrototype() == null && !isLocked(LockAttribute.LOCK_POPULATED)) return true; return areItemsEqual(itemPrototype); diff --git a/src/com/jaquadro/minecraft/storagedrawers/storage/DrawerData.java b/src/com/jaquadro/minecraft/storagedrawers/storage/DrawerData.java index 14dc6d8..95fa9d9 100644 --- a/src/com/jaquadro/minecraft/storagedrawers/storage/DrawerData.java +++ b/src/com/jaquadro/minecraft/storagedrawers/storage/DrawerData.java @@ -135,7 +135,7 @@ public class DrawerData extends BaseDrawerData implements IVoidable, IShroudable @Override public boolean canItemBeStored (ItemStack itemPrototype) { - if (protoStack == nullStack) + if (protoStack == nullStack && !isLocked(LockAttribute.LOCK_POPULATED)) return true; return areItemsEqual(itemPrototype);