Skip to content

Commit

Permalink
Allow any drawer face to be valid for IInventory.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaquadro committed May 8, 2015
1 parent 785c4a1 commit b224d20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public SlotRecord (BlockCoord coord, int slot) {
private List<SlotRecord> drawerSlotList = new ArrayList<SlotRecord>();

private int[] inventorySlots = new int[0];
private int[] autoSides = new int[] { 0, 1 };
private int[] autoSides = new int[] { 0, 1, 2, 3, 4, 5 };
private int direction;

private int drawerSize = 0;
Expand All @@ -76,13 +76,6 @@ public int getDirection () {

public void setDirection (int direction) {
this.direction = direction % 6;

autoSides = new int[] { 0, 1, ForgeDirection.OPPOSITES[direction], 2, 3 };

if (direction == 2 || direction == 3) {
autoSides[3] = 4;
autoSides[4] = 5;
}
}

public int interactPutItemsIntoInventory (EntityPlayer player) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public abstract class TileEntityDrawers extends TileEntity implements IDrawerGro
private IDrawer[] drawers;
private IDrawerInventory inventory;

private int[] autoSides = new int[] { 0, 1 };
private int[] autoSides = new int[] { 0, 1, 2, 3, 4, 5 };

private int direction;
private int drawerCapacity = 1;
Expand Down Expand Up @@ -71,13 +71,6 @@ public int getDirection () {

public void setDirection (int direction) {
this.direction = direction % 6;

autoSides = new int[] { 0, 1, ForgeDirection.OPPOSITES[direction], 2, 3 };

if (direction == 2 || direction == 3) {
autoSides[3] = 4;
autoSides[4] = 5;
}
}

public int getStorageLevel () {
Expand Down

0 comments on commit b224d20

Please sign in to comment.