Skip to content

Commit

Permalink
Fix non-ammo projectiles returning arrows instead of the projectile i…
Browse files Browse the repository at this point in the history
…tem. #1248
  • Loading branch information
bonii-xx committed Dec 21, 2014
1 parent 3ccfc0a commit 86b2bc0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -528,7 +528,7 @@ public void onCollideWithPlayer(EntityPlayer player)
}
// regular pickup.
// Note that you can't pick up ammo items without the proper itemstack in your inventory to prevent dupes
else if(!player.inventory.addItemStackToInventory(new ItemStack(Items.arrow, 1)))
else if(returnStack != null && !player.inventory.addItemStackToInventory(returnStack))
{
flag = false;
}
Expand Down

0 comments on commit 86b2bc0

Please sign in to comment.