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

Commit

Permalink
Resolves #661
Browse files Browse the repository at this point in the history
  • Loading branch information
pahimar committed Mar 27, 2014
1 parent ea280ba commit 065d129
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,15 @@ public ItemStack transferStackInSlot(EntityPlayer entityPlayer, int slotIndex)
else if (itemStack.getItem() instanceof ItemAlchemicalBag)
{
// Attempt to shift click a bag from the player inventory into the hot bar inventory
if (slotIndex < (bagInventoryRows * bagInventoryColumns) + 27)
if (slotIndex < (bagInventoryRows * bagInventoryColumns) + (PLAYER_INVENTORY_ROWS * PLAYER_INVENTORY_COLUMNS))
{
if (!this.mergeItemStack(itemStack, bagInventoryRows * bagInventoryColumns + 27, inventorySlots.size(), false))
if (!this.mergeItemStack(itemStack, (bagInventoryRows * bagInventoryColumns) + (PLAYER_INVENTORY_ROWS * PLAYER_INVENTORY_COLUMNS), inventorySlots.size(), false))
{
return null;
}
}
// Attempt to shift click a bag from the hot bar inventory into the player inventory
else if (!this.mergeItemStack(itemStack, bagInventoryRows * bagInventoryColumns, (bagInventoryRows * bagInventoryColumns) + 27, false))
else if (!this.mergeItemStack(itemStack, bagInventoryRows * bagInventoryColumns, (bagInventoryRows * bagInventoryColumns) + (PLAYER_INVENTORY_ROWS * PLAYER_INVENTORY_COLUMNS), false))
{
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
<entry key="Minecraft 1.4.7">pre1f|http://goo.gl/Ria2V</entry>
<entry key="Minecraft 1.5.1">pre1g|http://goo.gl/Ria2V</entry>
<entry key="Minecraft 1.5.2">pre1h|http://goo.gl/Ria2V</entry>
<entry key="Minecraft 1.6.4">0.1.137|http://goo.gl/Ria2V</entry>
<entry key="Minecraft 1.6.4">0.1.140|http://goo.gl/Ria2V</entry>
</properties>

1 comment on commit 065d129

@Lapiman
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oooh, hey! Updates! Always glad to see you're still around, @pahimar :D

Please sign in to comment.