Skip to content

Commit

Permalink
Fix sided inventory on back side; prep for release
Browse files Browse the repository at this point in the history
  • Loading branch information
jaquadro committed Aug 29, 2014
1 parent 544d39a commit 879ba86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/mcmod.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"modid": "StorageDrawers",
"name": "Storage Drawers",
"description": "Multi-drawers storage blocks for quick storage and retrieval.",
"description": "Multi-drawer storage blocks for quick storage and retrieval.",
"version": "1.0.0",
"credits": "By jaquadro",
"logoFile": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,8 @@ public boolean canInsertItem (int slot, ItemStack stack, int side) {
if (slot >= getSizeInventory())
return false;

int[] validSides = getAccessibleSlotsFromSide(side);
for (int i = 0; i < validSides.length; i++) {
if (side == validSides[i]) {
for (int i = 0; i < autoSides.length; i++) {
if (side == autoSides[i]) {
return isItemValidForSlot(slot, stack);
}
}
Expand Down

0 comments on commit 879ba86

Please sign in to comment.