Fix a bunch of things assuming the player only has main hand. Closes #424

This commit is contained in:
Vincent Lee committed 2016-08-05 18:31:44 -05:00
1 parent 8eccfad65e
commit acd5cce7ce
15 files changed
+45 -39

No files matched your search

@@ -179,7 +179,7 @@ public class BlockAltar extends BlockMod implements ILexiconable {
} else if(stack != null && stack.getItem() == Items.BUCKET && (tile.hasWater || tile.hasLava) && !Botania.gardenOfGlassLoaded) {
ItemStack bucket = tile.hasLava ? new ItemStack(Items.LAVA_BUCKET) : new ItemStack(Items.WATER_BUCKET);
if(stack.stackSize == 1)
player.inventory.setInventorySlotContents(player.inventory.currentItem, bucket);
player.setHeldItem(hand, bucket);
else {
if(!player.inventory.addItemStackToInventory(bucket))
player.dropItem(bucket, false);