Fix Creative arrows getting picked up endlessly

This commit is contained in:
Qowyn committed 2014-09-29 21:30:51 +02:00
1 parent 901a3e3be9
commit f93ab231b0
1 file changed
+1 -1
@@ -64,7 +64,7 @@ public class ArrowEntity extends EntityArrow implements IEntityAdditionalSpawnDa
{
this.playSound("random.pop", 0.2F, ((this.rand.nextFloat() - this.rand.nextFloat()) * 0.7F + 1.0F) * 2.0F);
par1EntityPlayer.onItemPickup(this, 1);
if(returnStack.stackSize <= 0)
if(returnStack.stackSize <= 0 || this.canBePickedUp == 2)
this.setDead();
}
}