Skip to content
This repository was archived by the owner on Apr 22, 2019. It is now read-only.

Commit 065d129

Browse files
committed
Resolves #661
1 parent ea280ba commit 065d129

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/com/pahimar/ee3/inventory/ContainerAlchemicalBag.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,15 @@ public ItemStack transferStackInSlot(EntityPlayer entityPlayer, int slotIndex)
172172
else if (itemStack.getItem() instanceof ItemAlchemicalBag)
173173
{
174174
// Attempt to shift click a bag from the player inventory into the hot bar inventory
175-
if (slotIndex < (bagInventoryRows * bagInventoryColumns) + 27)
175+
if (slotIndex < (bagInventoryRows * bagInventoryColumns) + (PLAYER_INVENTORY_ROWS * PLAYER_INVENTORY_COLUMNS))
176176
{
177-
if (!this.mergeItemStack(itemStack, bagInventoryRows * bagInventoryColumns + 27, inventorySlots.size(), false))
177+
if (!this.mergeItemStack(itemStack, (bagInventoryRows * bagInventoryColumns) + (PLAYER_INVENTORY_ROWS * PLAYER_INVENTORY_COLUMNS), inventorySlots.size(), false))
178178
{
179179
return null;
180180
}
181181
}
182182
// Attempt to shift click a bag from the hot bar inventory into the player inventory
183-
else if (!this.mergeItemStack(itemStack, bagInventoryRows * bagInventoryColumns, (bagInventoryRows * bagInventoryColumns) + 27, false))
183+
else if (!this.mergeItemStack(itemStack, bagInventoryRows * bagInventoryColumns, (bagInventoryRows * bagInventoryColumns) + (PLAYER_INVENTORY_ROWS * PLAYER_INVENTORY_COLUMNS), false))
184184
{
185185
return null;
186186
}

version.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
<entry key="Minecraft 1.4.7">pre1f|http://goo.gl/Ria2V</entry>
1010
<entry key="Minecraft 1.5.1">pre1g|http://goo.gl/Ria2V</entry>
1111
<entry key="Minecraft 1.5.2">pre1h|http://goo.gl/Ria2V</entry>
12-
<entry key="Minecraft 1.6.4">0.1.137|http://goo.gl/Ria2V</entry>
12+
<entry key="Minecraft 1.6.4">0.1.140|http://goo.gl/Ria2V</entry>
1313
</properties>

0 commit comments

Comments
 (0)