// Drop gun
if(!worldObj.isRemote)
{
if(TeamsManager.weaponDrops == 2)
{
EntityGunItem gunEntity = new EntityGunItem(worldObj, posX, posY, posZ, new ItemStack(type.getItem()), Arrays.asList(ammo));
worldObj.spawnEntityInWorld(gunEntity);
}
else if(TeamsManager.weaponDrops == 1)
{
dropItem(type.getItem(), 1);