mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-14 01:14:18 +00:00
Fix non-ammo projectiles returning arrows instead of the projectile item. #1248
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user