Fix non-ammo projectiles returning arrows instead of the projectile item. #1248

This commit is contained in:
Bernhard Bonigl committed 2014-12-21 22:31:31 +01:00
1 parent 3ccfc0a22a
commit 86b2bc0856
1 file changed
+1 -1
@@ -528,7 +528,7 @@ public abstract class ProjectileBase extends EntityArrow implements IEntityAddit
}
// 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;
}